Update of /cvsroot/devil-linux/build/scripts/scripts
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv10975
Modified Files:
install-on-usb
Log Message:
- small bugfixes
Index: install-on-usb
===================================================================
RCS file: /cvsroot/devil-linux/build/scripts/scripts/install-on-usb,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- install-on-usb 19 Sep 2008 00:44:52 -0000 1.27
+++ install-on-usb 7 Oct 2008 19:16:47 -0000 1.28
@@ -457,15 +457,15 @@
configure_serial_console () {
- MESSAGE="Please configure login via serial console ttyS0 manually. \nAdd the following line to /etc/inittab:\n\tS0:2345:respawn:/sbin/agetty -L $SERIALSPEED ttyS0 vt102\nAdd the following line to /etc/securetty:\n\tttyS0\n";
+ local MESSAGE="Please configure login via serial console ttyS0 manually. \nAdd the following line to /etc/inittab:\n\tS0:2345:respawn:/sbin/agetty -L $SERIALSPEED ttyS0 vt102\nAdd the following line to /etc/securetty:\n\tttyS0\n";
if ! grep etc-mnt /proc/mounts > /dev/null; then
mount -t auto $ETC_PART $TMPDIR/etc-mnt
fi
if [ -f $TMPDIR/etc-mnt/etc-mods.tar.bz2 ] ; then
- tar vpfxj $TMPDIR/etc-mnt/etc-mods.tar.bz2 -C $TMPDIR/etc-for-mods > /dev/null || \
- ( echo "Unable to unpack etc-mods.tar.bz2..."; echo -e $MESSAGE ; return 1 );
+ tar pfxj $TMPDIR/etc-mnt/etc-mods.tar.bz2 -C $TMPDIR/etc-for-mods 2> /dev/null || \
+ ( echo "Unable to unpack etc-mods.tar.bz2..."; echo -e "$MESSAGE" ; return 1 );
else
mkdir -p $TMPDIR/etc-for-mods/etc-mods/ && \
cp -a $TMPDIR/iso-mnt/etc-cd/{inittab,securetty} $TMPDIR/etc-for-mods/etc-mods/ || ( echo -e $MESSAGE ; return 1; )
|