Check that networks file exists
This commit is contained in:
parent
53f105e4eb
commit
14cc474649
|
@ -143,7 +143,7 @@ function check_for_updates {
|
|||
}
|
||||
|
||||
function read_repo_servers {
|
||||
if [ -f $CONFIGURATION_FILE ]; then
|
||||
if [ -f $CONFIGURATION_FILE ]; then
|
||||
if grep -q "FRIENDS_MIRRORS_SERVER" $CONFIGURATION_FILE; then
|
||||
FRIENDS_MIRRORS_SERVER=$(grep "FRIENDS_MIRRORS_SERVER" $CONFIGURATION_FILE | awk -F '=' '{print $2}')
|
||||
fi
|
||||
|
@ -1728,8 +1728,10 @@ function hotspot_settings {
|
|||
if [[ $TEMP_WIFI_HOTSPOT == $'yes' || $TEMP_WIFI_HOTSPOT == $'y' || $TEMP_WIFI_HOTSPOT == $'on' ]]; then
|
||||
TEMP_WIFI_HOTSPOT='yes'
|
||||
else
|
||||
TEMP_WIFI_HOTSPOT='no'
|
||||
WIFI_EXTRA='--networks $WIFI_NETWORKS_FILE'
|
||||
TEMP_WIFI_HOTSPOT='no'
|
||||
if [ -f $WIFI_NETWORKS_FILE ]; then
|
||||
WIFI_EXTRA='--networks $WIFI_NETWORKS_FILE'
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ $TEMP_WIFI_TYPE != $'none' ]]; then
|
||||
|
|
Loading…
Reference in New Issue