mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-12-25 09:17:08 +00:00
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:
16
packages/base/all/boot.d/src/53.install-debs
Executable file
16
packages/base/all/boot.d/src/53.install-debs
Executable 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user