You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
716 B
19 lines
716 B
#!/bin/bash
|
|
|
|
set -e # exit on error
|
|
set -o pipefail # exit on pipeline error
|
|
set -u # treat unset variable as error
|
|
|
|
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
|
|
|
|
echo "firmware-ipw2x00 firmware-ipw2x00/license/accepted boolean true" | debconf-set-selections
|
|
echo "b43-fwcutter b43-fwcutter/install-unconditional boolean true" | debconf-set-selections
|
|
|
|
# install packages
|
|
if [ -f $SCRIPT_DIR/package.list ]; then
|
|
#sudo DEBIAN_FRONTEND=$DEBIAN_FRONTEND_TYPE \
|
|
$APT_CMD update >>$OUTPUT 2>&1 &&
|
|
#sudo DEBIAN_FRONTEND=$DEBIAN_FRONTEND_TYPE \
|
|
$APT_CMD install $APT_OPTIONS $APT_OPTIONS2 \
|
|
$(grep -vE "^\s*#" $SCRIPT_DIR/package.list | tr "\n" " ") >>$OUTPUT 2>&1
|
|
fi
|