-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday, 2008-10-14 at 22:56 +0100, Bob Williams wrote:
Ok!
Many thanks, Carlos. I'll look at this in more detail in a couple of days, when I have more time, but an initial run of 'myusb start' threw up the following:
/sbin/myusb: line 24: ./etc/rc.status: No such file or directory
There should be a space after the first dot ("._script"). Ie, ". /etc/rc.status". You eated it! :-p
/sbin/myusb: line 25: rc_reset: command not found
#but I can see it on line 77 of rc.status!
Yes, but with the missing space it did not load.
(have a look at the script 'skeleton', man init.d, and also the suse book, it is explained there).
Which suse book?
The admin book, it has a different name now. It is in "opensuse-manual_en-11.0-10.2...rpm". Chapter 8 in version 11.0. Years ago it was a real paper book which I read when going to bed :-)
You also have to check the correct data to give to "/etc/init.d/boot.crypto" so that it mounts your stick. I think there is another method if it is of the new... hold on, I goofed. Your stick is not encrypted, is it? Then the start section should be:
No encrypted (it's the /home inside the laptop that's encrypted) so I used this:
Right!
start) ISDISK=`ls /dev/disk/by-label | grep $MYLABEL` if ! test -n "$ISDISK" ; then
...
Another:
status) ISDISK=`mount | grep $MYSTICK` if ! test -n "$ISDISK" ; then echo "*** ERROR: missing disk or not mounted" rc_failed fi rc_status -v ;;
Do I need this section (above), or is it an alternative?
Replace the original "status" section with the later one. When you issue the command "rcmyusb status" it should tell you if it is mounted or not. The original section does nothing.
When it works, activate it:
There's the rub :(
No problem, re-add that missing space. Funny what a trifle can do, eh? :)
chkconfig mysub on
and you should be done :-)
Usual disclaimers apply. If you go up in smoke, don't blame me, just quit smoking cigars :-p
Gave up twenty years ago :)
Good! X'-) - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkj1T5QACgkQtTMYHG2NR9V7JgCeMsE5MzOZ5Zq/4PnyOA6SbiC3 O3YAnigLigYERYsPPOLtmJV0wfExVGAw =k8Rx -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org