Boot-time package installation option.

Packages present and listed in /mnt/onl/data/install-debs/list will be installed.
This faciliates development and boot-patching of existing systems.
This commit is contained in:
Jeffrey Townsend
2016-07-19 14:35:32 +00:00
parent 705fd2f3cd
commit b19ec20227

View File

@@ -0,0 +1,16 @@
#!/bin/sh
############################################################
PACKAGE_DIR=/mnt/onl/data/install-debs
PACKAGE_LIST="$PACKAGE_DIR/list"
if [ -e "$PACKAGE_LIST" ]; then
for package in $(cat $PACKAGE_LIST); do
echo "Installing packages $package..."
if ! dpkg -i "$PACKAGE_DIR/$package"; then
echo "Failed."
exit 1
fi
done
fi