mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 10:52:57 +02:00
add hosts gateway entry for red static
git-svn-id: http://svn.ipfire.org/svn/ipfire/branches/2.1/trunk@1182 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -99,6 +99,9 @@ case "${1}" in
|
||||
echo -n "${DEVICE}" > /var/ipfire/red/iface
|
||||
echo -n "${ADDRESS}" > /var/ipfire/red/local-ipaddress
|
||||
echo -n "${GATEWAY}" > /var/ipfire/red/remote-ipaddress
|
||||
grep -v "gateway" /etc/hosts > /tmp/hosts
|
||||
echo "$GATEWAY gateway" >> /tmp/hosts
|
||||
mv /tmp/hosts /etc/hosts
|
||||
echo -n "${DNS1}" > /var/ipfire/red/dns1
|
||||
echo -n "${DNS2}" > /var/ipfire/red/dns2
|
||||
touch /var/ipfire/red/active
|
||||
|
||||
Reference in New Issue
Block a user