# HG changeset patch # User Christophe Lincoln # Date 1240757732 -7200 # Node ID ae298db600095d659c99fd8e21a4022bbefcb745 # Parent c2bc39dc798599863904c717e82a73b49638202e Add condition-option to install packages at boot from /home/boot/packages diff -r c2bc39dc7985 -r ae298db60009 etc/init.d/bootopts.sh --- a/etc/init.d/bootopts.sh Sun Apr 26 16:44:25 2009 +0200 +++ b/etc/init.d/bootopts.sh Sun Apr 26 16:55:32 2009 +0200 @@ -205,3 +205,13 @@ echo "Activating swap memory..." swapon -a fi + +# Install all packages in /home/boot/packages. In live (CD and USB) mode +# the option home= will mount the device on /home, so we already have +# a boot directory with the Kernel and rootfs. +if [ -d "/home/boot/packages" ]; then + for pkg in /home/boot/packages/*.tazpkg + do + tazpkg install $pkg + done +fi