Skip to content

Commit

Permalink
Merge pull request #4 from hypriot/fix-hostname
Browse files Browse the repository at this point in the history
fix setting hostname by removing spaces
  • Loading branch information
StefanScherer committed Mar 30, 2015
2 parents eee0099 + b870eae commit 7cd0702
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions flash
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ OPTIONS:
The config file occidentalis.txt should look like
# hostname for your Hypriot Raspberry Pi:
hostname = hypriot-pi
hostname=hypriot-pi
# basic wireless networking options:
wifi_ssid = SSID
wifi_password = 12345
wifi_ssid=SSID
wifi_password=12345
EOF
exit 1
}
Expand Down Expand Up @@ -166,15 +166,15 @@ fi

if [ ! -z $SD_HOSTNAME ]; then
echo "Set hostname = $SD_HOSTNAME"
sed -i -e "s/.*hostname.*=.*\$/hostname = $SD_HOSTNAME/" "${boot}/occidentalis.txt"
sed -i -e "s/.*hostname.*=.*\$/hostname=$SD_HOSTNAME/" "${boot}/occidentalis.txt"
fi
if [ ! -z $WIFI_SSID ]; then
echo "Set wifi_ssid = $WIFI_SSID"
sed -i -e "s/.*wifi_ssid.*=.*\$/wifi_ssid = $WIFI_SSID/" "${boot}/occidentalis.txt"
sed -i -e "s/.*wifi_ssid.*=.*\$/wifi_ssid=$WIFI_SSID/" "${boot}/occidentalis.txt"
fi
if [ ! -z $WIFI_PASSWORD ]; then
echo "Set wifi_password = $WIFI_PASSWORD"
sed -i -e "s/.*wifi_password.*=.*\$/wifi_password = $WIFI_PASSWORD/" "${boot}/occidentalis.txt"
sed -i -e "s/.*wifi_password.*=.*\$/wifi_password=$WIFI_PASSWORD/" "${boot}/occidentalis.txt"
fi

echo "Unmounting and ejecting ${disk} ..."
Expand Down

0 comments on commit 7cd0702

Please sign in to comment.