Use braces

This commit is contained in:
Bob Mottram 2014-12-25 17:19:12 +00:00
parent 19be45ced7
commit f16ca11b61
1 changed files with 2 additions and 2 deletions

View File

@ -7161,7 +7161,7 @@ function enable_wifi_hotspot {
# Add a password
if [ ! $WIFI_PASSWORD ]; then
TEMP_WIFI_PASSWORD=$(openssl rand -base64 8)
WIFI_PASSWORD=$($TEMP_WIFI_PASSWORD:0:8}
WIFI_PASSWORD=${$TEMP_WIFI_PASSWORD:0:8}
fi
sed -i 's|#DAEMON_CONF=.*|DAEMON_CONF="/etc/hostapd/hostapd.conf"|g' /etc/default/hostapd
@ -7270,7 +7270,7 @@ function enable_wifi {
# Add a password
if [ ! $WIFI_PASSWORD ]; then
TEMP_WIFI_PASSWORD=$(openssl rand -base64 8)
WIFI_PASSWORD=$($TEMP_WIFI_PASSWORD:0:8}
WIFI_PASSWORD=${$TEMP_WIFI_PASSWORD:0:8}
fi
# Add a password