mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
Noch ein Paar Komfortfunktionen.
Zaehler wird automatisch zuruekgesetzt. git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@493 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -53,3 +53,6 @@ HOME=/
|
||||
%nightly * 3-5 /var/ipfire/updatexlrator/autocheck/cron.daily
|
||||
%weekly * 3-5 /var/ipfire/updatexlrator/autocheck/cron.weekly
|
||||
%monthly * 3-5 * /var/ipfire/updatexlrator/autocheck/cron.monthly
|
||||
|
||||
# Reset Dialup Statistics
|
||||
0 0 1 * * /usr/local/bin/dialctrl.pl reset
|
||||
|
||||
@@ -62,6 +62,7 @@ then
|
||||
fi
|
||||
|
||||
### Cleanup the system when red goes down ###
|
||||
/usr/local/bin/dialctrl.pl down
|
||||
rm -f /var/ipfire/red/iface
|
||||
|
||||
fi
|
||||
|
||||
@@ -22,10 +22,7 @@ boot_mesg "Bringing up the $name interface..."
|
||||
boot_mesg_flush
|
||||
|
||||
(
|
||||
eval $(/usr/local/bin/readhash /var/ipfire/vpn/settings)
|
||||
eval $(/usr/local/bin/readhash /var/ipfire/dhcp/settings)
|
||||
eval $(/usr/local/bin/readhash /var/ipfire/ethernet/settings)
|
||||
eval $(/usr/local/bin/readhash /var/ipfire/ppp/settings)
|
||||
|
||||
if [ "$name" == "green" ]; then
|
||||
DEVICE="${GREEN_DEV}"
|
||||
@@ -85,6 +82,7 @@ boot_mesg_flush
|
||||
/etc/rc.d/init.d/net/common/ipv4-static ${RED_DEV} up
|
||||
fi
|
||||
|
||||
/usr/local/bin/dialctrl.pl up
|
||||
/etc/rc.d/init.d/net/red/update
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user