kopia lustrzana https://github.com/cyoung/stratux
formatting
rodzic
226b8442f7
commit
94da60ed06
|
@ -32,9 +32,8 @@ if [ ! -f $DAEMON_USER_PREF ]; then
|
||||||
if grep -q "^$i" $DAEMON_CONF
|
if grep -q "^$i" $DAEMON_CONF
|
||||||
then
|
then
|
||||||
grep "^$i" $DAEMON_CONF >> $DAEMON_USER_PREF
|
grep "^$i" $DAEMON_CONF >> $DAEMON_USER_PREF
|
||||||
echo "deleting lines..."
|
|
||||||
sed -i '/^'"$i"'/d' $DAEMON_CONF
|
sed -i '/^'"$i"'/d' $DAEMON_CONF
|
||||||
sed -i '/^'"$i"'/d' $DAEMON_CONF_EDIMAX
|
sed -i '/^'"$i"'/d' $DAEMON_CONF_EDIMAX
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
# just remove commented values
|
# just remove commented values
|
||||||
|
@ -43,7 +42,7 @@ if [ ! -f $DAEMON_USER_PREF ]; then
|
||||||
if grep -q "^$i" $DAEMON_CONF
|
if grep -q "^$i" $DAEMON_CONF
|
||||||
then
|
then
|
||||||
sed -i '/^'"$i"'/d' $DAEMON_CONF
|
sed -i '/^'"$i"'/d' $DAEMON_CONF
|
||||||
sed -i '/^'"$i"'/d' $DAEMON_CONF_EDIMAX
|
sed -i '/^'"$i"'/d' $DAEMON_CONF_EDIMAX
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
Ładowanie…
Reference in New Issue