add sleep to make sure the file write has time to finish before checking for the file
pull/529/head
peepsnet 2016-11-23 23:51:18 -05:00 zatwierdzone przez GitHub
rodzic 6c5352e3a1
commit 2ef42ea8d0
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -43,6 +43,10 @@ if [ ! -f $DAEMON_USER_PREF ]; then
sed -i '/^'"$i"'/d' $DAEMON_CONF_EDIMAX
fi
done
#make sure there is time to get the file written before checking for it again
sleep 1
# If once the code above runs and there is still no hostapd.user file then something is wrong and we will just create the file with basic settings.
#Any more then this they somebody was messing with things and its not our fault things are this bad
if [ ! -f $DAEMON_USER_PREF ]; then
@ -69,6 +73,6 @@ cat ${DAEMON_USER_PREF} >> ${DAEMON_TMP}
${DAEMON_SBIN} -B ${DAEMON_TMP}
sleep 5
sleep 3
/usr/sbin/service isc-dhcp-server start