slitaz-boot-scripts diff etc/init.d/bootopts.sh @ rev 156
network.sh: speed up udhcp lease time
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Apr 26 01:14:33 2009 +0200 (2009-04-26) |
parents | ae0a8f86229a |
children | 6d1034b2830e |
line diff
1.1 --- a/etc/init.d/bootopts.sh Tue Apr 21 01:46:21 2009 +0200 1.2 +++ b/etc/init.d/bootopts.sh Sun Apr 26 01:14:33 2009 +0200 1.3 @@ -207,3 +207,17 @@ 1.4 if grep -q "mount" /proc/cmdline; then 1.5 mount_partitions 1.6 fi 1.7 + 1.8 +# Mount and install packages-XXX.iso (usefull without Internet connection) 1.9 +if grep -q " mount-packages" /proc/cmdline; then 1.10 + PKGSIGN="LABEL=\"packages-$(cat /etc/slitaz-release)\" TYPE=\"iso9660\"" 1.11 + PKGDEV=$(blkid | grep "$PKGSIGN" | cut -d: -f1) 1.12 + [ -z "$PKGDEV" -a -L /dev/cdrom ] && PKGDEV=$(blkid /dev/cdrom | grep "$PKGSIGN" | cut -d: -f1) 1.13 + if [ -n "$PKGDEV" ]; then 1.14 + echo -n "Mounting packages archive from $PKGDEV..." 1.15 + mkdir /packages && mount -t iso9660 -o ro $PKGDEV /packages 1.16 + status 1.17 + /packages/install.sh 1.18 + fi 1.19 +fi 1.20 +