slitaz-boot-scripts rev 163
Add condition-option to install packages at boot from /home/boot/packages
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Apr 26 16:55:32 2009 +0200 (2009-04-26) |
parents | c2bc39dc7985 |
children | cdbc958f594e |
files | etc/init.d/bootopts.sh |
line diff
1.1 --- a/etc/init.d/bootopts.sh Sun Apr 26 16:44:25 2009 +0200 1.2 +++ b/etc/init.d/bootopts.sh Sun Apr 26 16:55:32 2009 +0200 1.3 @@ -205,3 +205,13 @@ 1.4 echo "Activating swap memory..." 1.5 swapon -a 1.6 fi 1.7 + 1.8 +# Install all packages in /home/boot/packages. In live (CD and USB) mode 1.9 +# the option home= will mount the device on /home, so we already have 1.10 +# a boot directory with the Kernel and rootfs. 1.11 +if [ -d "/home/boot/packages" ]; then 1.12 + for pkg in /home/boot/packages/*.tazpkg 1.13 + do 1.14 + tazpkg install $pkg 1.15 + done 1.16 +fi