mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-11 11:35:54 +02:00
@@ -6,6 +6,7 @@ etc/rc.d/init.d/leds
|
||||
etc/rc.d/init.d/rc
|
||||
etc/rc.d/init.d/snort
|
||||
etc/rc.d/init.d/networking/red.up/50-ovpn
|
||||
etc/rc.d/init.d/networking/dhcpcd.exe
|
||||
etc/rc.d/rc0.d/K78snort
|
||||
etc/rc.d/rc0.d/K79leds
|
||||
etc/rc.d/rc3.d/S21leds
|
||||
|
||||
@@ -49,7 +49,7 @@ dhcpcd_up()
|
||||
fi
|
||||
|
||||
#Get IP Address
|
||||
echo "$new_ip_address" > /var/ipfire/red/local-ipaddress
|
||||
echo -n "$new_ip_address" > /var/ipfire/red/local-ipaddress
|
||||
|
||||
#Get default gateway
|
||||
grep -v " gateway$" /etc/hosts > /tmp/hosts
|
||||
@@ -59,7 +59,7 @@ dhcpcd_up()
|
||||
fi
|
||||
if [ $update ]; then
|
||||
[ -e "/var/ipfire/red/active" ] || touch /var/ipfire/red/active
|
||||
echo "$new_routers" > /var/ipfire/red/remote-ipaddress
|
||||
echo -n "$new_routers" > /var/ipfire/red/remote-ipaddress
|
||||
logger -p local0.info -t dhcpcd.exe[$$] "$interface has been (re)configured with IP=$new_ip_address"
|
||||
run_subdir ${rc_base}/init.d/networking/red.up/
|
||||
touch /var/ipfire/red/active
|
||||
|
||||
Reference in New Issue
Block a user