mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
Fixed a bug gateway never was changed when ppp was used
This commit is contained in:
@@ -43,6 +43,9 @@ fi
|
||||
echo -n "$1" > /var/ipfire/red/iface
|
||||
echo -n "$4" > /var/ipfire/red/local-ipaddress
|
||||
echo -n "$5" > /var/ipfire/red/remote-ipaddress
|
||||
grep -v "gateway" /etc/hosts > /tmp/hosts
|
||||
echo "$5 gateway" >> /tmp/hosts
|
||||
mv /tmp/hosts /etc/hosts
|
||||
|
||||
touch /var/ipfire/red/active
|
||||
|
||||
|
||||
Reference in New Issue
Block a user