This commit is contained in:
Bob Mottram 2015-11-20 21:50:54 +00:00
parent 4fccf12c69
commit 0e3cc7e07a
1 changed files with 15 additions and 11 deletions

View File

@ -59,8 +59,8 @@ echo Building $MACHINE Freedombone for $ARCHITECTURE.
case "$MACHINE" in case "$MACHINE" in
beaglebone) beaglebone)
extra_pkgs="$beaglebone_pkgs" extra_pkgs="$beaglebone_pkgs"
extra_opts="\ extra_opts="\
--variant minbase \ --variant minbase \
--bootoffset=2mib \ --bootoffset=2mib \
--bootsize 128M \ --bootsize 128M \
@ -70,17 +70,17 @@ case "$MACHINE" in
--foreign /usr/bin/qemu-arm-static \ --foreign /usr/bin/qemu-arm-static \
--roottype btrfs \ --roottype btrfs \
" "
;; ;;
virtualbox) virtualbox)
extra_opts="\ extra_opts="\
--grub \ --grub \
--roottype btrfs \ --roottype btrfs \
" ;; " ;;
all) all)
extra_opts="\ extra_opts="\
--grub \ --grub \
--roottype btrfs \ --roottype btrfs \
" ;; " ;;
esac esac
# allow for lots of extra fun customization options. # allow for lots of extra fun customization options.
@ -90,9 +90,9 @@ do
development) development)
extra_pkgs="$extra_pkgs $dev_pkgs" extra_pkgs="$extra_pkgs $dev_pkgs"
;; ;;
xfce) xfce)
extra_pkgs="$extra_pkgs $xfce_pkgs" extra_pkgs="$extra_pkgs $xfce_pkgs"
;; ;;
esac esac
done done
@ -111,7 +111,11 @@ fi
echo 'Making customised customisation script' echo 'Making customised customisation script'
TEMP_CUSTOMISE=/etc/freedombone/image-customise TEMP_CUSTOMISE=/etc/freedombone/image-customise
sudo cp /usr/local/bin/freedombone-image-customise $TEMP_CUSTOMISE if [ -f /usr/local/bin/freedombone-image-customise ]; then
sudo cp /usr/local/bin/freedombone-image-customise $TEMP_CUSTOMISE
else
sudo cp /usr/bin/freedombone-image-customise $TEMP_CUSTOMISE
fi
sudo sed -i "s|MY_USERNAME=.*|MY_USERNAME=${MY_USERNAME}|g" $TEMP_CUSTOMISE sudo sed -i "s|MY_USERNAME=.*|MY_USERNAME=${MY_USERNAME}|g" $TEMP_CUSTOMISE
sudo sed -i "s|MY_PASSWORD=.*|MY_PASSWORD=${MY_PASSWORD}|g" $TEMP_CUSTOMISE sudo sed -i "s|MY_PASSWORD=.*|MY_PASSWORD=${MY_PASSWORD}|g" $TEMP_CUSTOMISE
sudo sed -i "s|ROUTER_IP_ADDRESS=.*|ROUTER_IP_ADDRESS=${ROUTER_IP_ADDRESS}|g" $TEMP_CUSTOMISE sudo sed -i "s|ROUTER_IP_ADDRESS=.*|ROUTER_IP_ADDRESS=${ROUTER_IP_ADDRESS}|g" $TEMP_CUSTOMISE