I-Appliance BBS
The Official Source for Internet Appliance Upgrades and Mods

Click Here!
BBS Main List | Sign In | Sign Up | Search | Help | Linux-Hacker.netReply to Thread | Printer |

Home / Other I-Appliances / 3Com Audrey
fs-cifs execution in boot.sh

fs-cifs execution in boot.shfs-cifs execution in boot.sh (modified 0 times) JohnBoy
Profile
I am having no joy with /kojak/boot.sh executing my fs-cifs mounts. I have them entered correctly, and they run fine when I type them as they are in boot.sh in a pterm. But they do not get run when I boot.

Any ideas?

++john

09-11-2001 12:15:09

RE:fs-cifs execution in boot.shRE:fs-cifs execution in boot.sh (modified 0 times) jayklm
Profile
The USB ethernet adaptor did not come up yet you need to do this to your boot.sh file:
(from http://www.canoma.com/audrey/mp3.html)

Type this in:

vi /kojak/boot.sh
Go
# Wait for ethernet to go up
while [ !-f /dev/usbenet0 ]
do
sleep 1
done
/nto/bin/fs-cifs -a //Dell450:192.168.1.2:/music /music guest guest
<snapshotkey>
:wq<return>

09-11-2001 18:46:01

RE:fs-cifs execution in boot.shRE:fs-cifs execution in boot.sh (modified 0 times) acdana
Profile | Email
This runs, but doesn't do anything. It works fine at the command line but seems to ignore it in boot.sh. Is anyone getting this to work?
09-11-2001 19:33:52

RE:fs-cifs execution in boot.shRE:fs-cifs execution in boot.sh (modified 0 times) Andrel
Profile
Robert forgot to put theses instructions in his FAQ:

In the file '/kojak/go', change the line:
sh boot.sh
to:
sh boot.sh &

by adding an ampersand to the line. That's all !

André

09-11-2001 19:43:38

RE:fs-cifs execution in boot.shRE:fs-cifs execution in boot.sh (modified 0 times) jonnylbluejeans
Profile
I tried this and it tells me that it cannot find my USB Ethernet Adapter. I took out the changes, but something's still hosed.
10-02-2001 19:16:42

RE:fs-cifs execution in boot.shRE:fs-cifs execution in boot.sh (modified 0 times) jayklm
Profile
I think the sleep approch works best. when i use any conditinal statement to wait for the USB ethernet to come up. When I use sleep 15, my usb ethernet comes up 99% of the time as to about 60-70% of the time using the while statement.

#
# boot.sh
# this shell script contains commends that need to be executed at boot time
# (comment out the call in "go" if it annoys you during testing)
#
# Link 6.1 lib
ln -sP /nto/lib/libc.so.2 /usr/lib/ldqnx.so.2
sleep 15
# mount windows shares
# Change this -------\
# Change this \.................. ............
/nto/bin/fs-cifs -a //homer:192.168.0.11:/audrey /mount guest guest
/nto/bin/fs-cifs -a //homer:192.168.0.11:/mp3 /mp3 guest guest

# Start inetd
/bin/inetd
/mount/bin/wmswitch&
#
# Turn Swap file on
swapctl -a /tmp/swap.tmp -c -S 2M
swapon
#
# Start cron
cron&

10-02-2001 19:51:34

RE:fs-cifs execution in boot.shRE:fs-cifs execution in boot.sh (modified 0 times) Fran
Profile
I use the sleep method as well, but a little differently. At the bottom of /kojak/go I use 'sh mountGwen.sh &' where mountGwen.sh has two lines:

sleep 5
/nto/bin/fs-cifs .... etc.

I've never had a boot that the share didn't mount (and I'd know because my Channel00 is on my share).

10-02-2001 22:57:11

RE:fs-cifs execution in boot.shRE:fs-cifs execution in boot.sh (modified 0 times) jayklm
Profile
Fran, do you have problems with using only 5 seconds? I found that sometimes my USB ethernet took 10 secounds to recover from a restart. This does not happen all the time.
10-03-2001 05:56:02

RE:fs-cifs execution in boot.shRE:fs-cifs execution in boot.sh (modified 1 times) jonnylbluejeans
Profile
Totally my bad...

I was hosed b/c of something else. I put in the following at the end of my boot.sh:

#Wait for Adapter
sleep 20
/nto/bin/fs-cifs ........

Works like a charm. Thanks.

Now if I could only call the SystemPanel from a web page... (any ideas, let me know john@lepone.com)

10-03-2001 06:59:16

RE:fs-cifs execution in boot.shRE:fs-cifs execution in boot.sh (modified 0 times) Fran
Profile
jayklm -

I've never had a problem w/ 5 seconds - just lucky?

10-03-2001 08:00:07

RE:fs-cifs execution in boot.shRE:fs-cifs execution in boot.sh (modified 0 times) inkspoof
Profile
Help!

I added the virtual keyboard and that worked fine. I then made changes to mount two shares on boot by making changes to the two files:

boot.sh
# Wait for ethernet to go up
while [ !-f /dev/usbenet0 ]
do
sleep 1
done
/nto/bin/fs-cifs -a //blah:192.168.1.90:/music /music guest guest
/nto/bin/fs-cifs -a //blah:192.168.1.90:/music /mount guest guest


go
changing: sh boot.sh ---> sh boot.sh &

after rebooting, the audrey just hangs a blank screen. none of the buttons respond. I made these changes in notepad under windoze and then "cp /[myshare]/boot.sh ." the files copied fine over and after a reboot, its stuck at a blank screen (right after the 3com logo pops up).

What can I do?

10-24-2001 18:07:41

RE:fs-cifs execution in boot.shRE:fs-cifs execution in boot.sh (modified 0 times) Fran
Profile
If you're sure your ethernet adapter is working (do you have another you could try?), I'm not sure you're going to be able to do anything beyond re-flashing your Audrey. I would suspect you're caught in an infinite loop waiting for the adapter to come up.

I don't know how AudreyHacking, Robert's, etc., FAQs / instructions get changed, but the loop method of waiting for the adapter to come up should be deleted. There is just no good reason to put the potential for an infinite loop in a boot file & people should use the "sleep" method instead.

10-24-2001 19:22:23

RE:fs-cifs execution in boot.shRE:fs-cifs execution in boot.sh (modified 0 times) inkspoof
Profile
Flashed it with a backup was what I ended up doing. I screwed something up somewhere. :\

In any case, got telnet, ftp, the keyboard and mounting on boot working now. *phew* You guys are a great resource. Now gonna try to get ssh running.

I had the loop statement in there - worked fine with 3 reboots so far, but I believe its wise to take that loop out. What happens after the sleep finishes and it can't mount? It times out right?

10-24-2001 19:36:55

RE:fs-cifs execution in boot.shRE:fs-cifs execution in boot.sh (modified 1 times) jayklm
Profile
glad you got it :)
10-24-2001 19:38:33

RE:fs-cifs execution in boot.shRE:fs-cifs execution in boot.sh (modified 0 times) Seven
Profile
Has anyone tried using "fs-cifs" on a shared but password protected device?
When sharing devices on my Win98SE machine, you have two choices...
1 - "Share-level access control (password for resource)"
2 - "User-level access control (user and group access)"
I'm currently trying to get #1 to work. No password works great for me but I haven't got it to work with a password yet.

I've tried...
/nto/bin/fs-cifs -a //Avatar:192.168.100.11:/mp3 /mp3 /guest /password
/nto/bin/fs-cifs -a //Avatar:192.168.100.11:/mp3 /mp3 /password
These don't seem to work. Anyone doing this successfully?

10-24-2001 21:56:16

RE:fs-cifs execution in boot.shRE:fs-cifs execution in boot.sh (modified 0 times) jfs1138
Profile
If you want to wait for the interface I think you can use /bin/if_up en0

this will wait for a few seconds for the link to come up and then continue. I'm not sure about the en0 parameter, but that seems to work on my system. It returns immediately where if I enter en1 or something else it pauses for a few moments and then returns with an error saying it had been through all it's retries.

10-24-2001 22:09:14

RE:fs-cifs execution in boot.shRE:fs-cifs execution in boot.sh (modified 0 times) bstadil
Profile
en0 is the network adapter. QNX uses en0 instead of eth0 asunder linux.
Bjorn
10-24-2001 22:58:20

RE:fs-cifs execution in boot.shRE:fs-cifs execution in boot.sh (modified 0 times) davec
Profile
I have used this in a separate script called remotemount.sh with this line in /kojak/go
remotemount.sh &

The script is as follows as uses the if_up en0 with good success. Haven't had it not find the USB Ethernet connection and it has never locked up into a loop either.

#checks for presense of ethernet adapter
if_up -r 20 en0
fs-cifs -a //<Computer Name>:192.168.xxx.yyy:/mnt /mnt guest guest

#increase priority to smooth out mp3 playback
slay -P 10 fs-cifs

#adjust phplay's buffer settings
export MPEGAUDIOBUFFERSIZE=8192
export MPEGAUDIOBUFFERSTARTPERCENT=50

Dave

10-24-2001 23:15:33

RE:fs-cifs execution in boot.shRE:fs-cifs execution in boot.sh (modified 0 times) keith721
Profile
guys (and gals!):

one sorta standard QNX utility option (that doesn't usually work in kojak programs, go figure...) is the '-v' verbosity option. it works very well with fs-cifs, which is why i mention it, here. depending on the level of diagnostic reporting built into the utility, you can use these options:

-v verbose; show something
-vv very verbose; show more
-vvv ridiculously verbose, etc...

with fs-cifs, it shows you the values it parsed from your command line, and what status it receives from the server handling each portion of the SMB connection request. i can't post example text, since i'm at work right now, and audrey's at home, but try it for yourselves; it might help you diagnose the problem.

happy hacking !!
keith721

10-25-2001 11:22:26

RE:fs-cifs execution in boot.shRE:fs-cifs execution in boot.sh (modified 0 times) Brumski
Profile | Email
Every time I try this:
> In the file '/kojak/go', change the line:
> sh boot.sh
> to:
> sh boot.sh &
...Audrey hangs on a blank screen at startup, right after the three rings screen. I added the ampersand as the first step toward mounting a share at bootup. Where did this go wrong?

TIA,
Brumski

03-25-2002 18:22:04

Reply to Thread | Printer |
All times are PSTPowered by UltraBoard v1.62



Copyright © 2000, Netmake Inc. All Rights Reserved.
See Terms and Conditions for more information.




i-opener opener laptop notebook computer help drivers dll free windows dos repair fix linux mac macintosh 2000 95 98 nt pc configure hardware software sound video netscape explorer network networking lan wan software cmos fat bios printer card mouse modem ide scsi cd rom controllers scanner tape hard drive cgi scripts source code mp3