[Voyage-linux] PATCH: command line processing for voyage.update
Christian Recktenwald
(spam-protected)
Tue Sep 22 23:55:15 HKT 2009
Hi,
I added some code also allowing voyage.update to
be run unattended which really helps if one
has to set up a bunch of alix (or other) boxes.
So it may be called this way:
cd voyage-current
./usr/local/sbin/voyage.update -i -P ALIX -t /dev/sdc -p 1 -m /mnt/cf -b 1 -g -s 9600 -c serial -d .
and everything's fine.
Comments are welcome.
-Chris
--
LiHAS - Adrian Reyer - Krehlstra??e 1 - D-70563 Stuttgart
Fon: +49 (7 11) 78 28 50 90 - Fax: +49 (7 11) 78 28 50 91
Mail: lihas at lihas.de - Web: http://lihas.de
Linux, Netzwerke, Consulting & Support - USt-ID: DE 227 816 626 Stuttgart
-------------- next part --------------
A non-text attachment was scrubbed...
Name: voyage.update.diff
Type: text/x-diff
Size: 886 bytes
Desc: not available
URL: <http://list.voyage.hk/pipermail/voyage-linux/attachments/20090922/09d950e1/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: voyage-install.sh.diff
Type: text/x-diff
Size: 6506 bytes
Desc: not available
URL: <http://list.voyage.hk/pipermail/voyage-linux/attachments/20090922/09d950e1/attachment-0001.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: script-utils.sh.diff
Type: text/x-diff
Size: 1107 bytes
Desc: not available
URL: <http://list.voyage.hk/pipermail/voyage-linux/attachments/20090922/09d950e1/attachment-0002.diff>
-------------- next part --------------
voyage.update :
added support for "-i" (install) and "-u" (update) command line options
changed $OPTIONS to reflect the modified behaviour of ask_setting()
script-utils.sh :
changed format of the OPTIONS variable in ask_setting()
now there are two layers cascaded:
the options separated by "%" (as they used to be)
are now divided by ":" into a number displayed on the dialog menue,
the discriptive text and a flag string indicating if the
option should be displayed at all
the separation of the individual "option" is done by
split_ask_setting_option() which returns $saso_nr, $saso_desc, $saso_cla
voyage-install.sh :
added usage() for displaying help
added doopt() as command line interpreter
changed $OPTIONS to reflect the modified behaviour of ask_setting()
More information about the Voyage-linux
mailing list