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

@ -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
if [ -f /usr/local/bin/freedombone-image-customise ]; then
sudo cp /usr/local/bin/freedombone-image-customise $TEMP_CUSTOMISE 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