Displaced freedom

This commit is contained in:
Bob Mottram 2014-12-25 17:28:51 +00:00
parent 9160421e7a
commit bba28c9c0e
1 changed files with 4 additions and 4 deletions

View File

@ -7155,8 +7155,8 @@ function enable_wifi_hotspot {
# Create an ESSID if one doesn't exist
if [ ! $WIFI_ESSID ]; then
TEMP_WIFI_ESSID="Freedom"$(openssl rand -base64 8)
WIFI_ESSID=${TEMP_WIFI_ESSID:0:3}
TEMP_WIFI_ESSID=$(openssl rand -base64 8)
WIFI_ESSID="Freedom"${TEMP_WIFI_ESSID:0:3}
fi
# Add a password
if [ ! $WIFI_PASSWORD ]; then
@ -7263,8 +7263,8 @@ function enable_wifi {
# Create an ESSID if one doesn't exist
if [ ! $WIFI_ESSID ]; then
TEMP_WIFI_ESSID="Freedom"$(openssl rand -base64 8)
WIFI_ESSID=${TEMP_WIFI_ESSID:0:3}
TEMP_WIFI_ESSID=$(openssl rand -base64 8)
WIFI_ESSID="Freedom"${TEMP_WIFI_ESSID:0:3}
fi
sed -i "s/essid/$WIFI_ESSID/g" /etc/network/interfaces
# Add a password