pull/529/head
peepsnet 2016-11-23 19:35:36 -05:00 zatwierdzone przez GitHub
rodzic 226b8442f7
commit 94da60ed06
1 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -32,9 +32,8 @@ if [ ! -f $DAEMON_USER_PREF ]; then
if grep -q "^$i" $DAEMON_CONF
then
grep "^$i" $DAEMON_CONF >> $DAEMON_USER_PREF
echo "deleting lines..."
sed -i '/^'"$i"'/d' $DAEMON_CONF
sed -i '/^'"$i"'/d' $DAEMON_CONF_EDIMAX
sed -i '/^'"$i"'/d' $DAEMON_CONF_EDIMAX
fi
done
# just remove commented values
@ -43,7 +42,7 @@ if [ ! -f $DAEMON_USER_PREF ]; then
if grep -q "^$i" $DAEMON_CONF
then
sed -i '/^'"$i"'/d' $DAEMON_CONF
sed -i '/^'"$i"'/d' $DAEMON_CONF_EDIMAX
sed -i '/^'"$i"'/d' $DAEMON_CONF_EDIMAX
fi
done
fi