]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
Noch ein Paar Komfortfunktionen.
authorms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Wed, 11 Apr 2007 23:25:47 +0000 (23:25 +0000)
committerms <ms@ea5c0bd1-69bd-2848-81d8-4f18e57aeed8>
Wed, 11 Apr 2007 23:25:47 +0000 (23:25 +0000)
Zaehler wird automatisch zuruekgesetzt.

git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@493 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

config/cron/crontab
src/initscripts/init.d/net/ifdown
src/initscripts/init.d/net/ifup

index d24ec5dc3a70b4dd386a2d2c3f0eb50a831956c7..2170a99cf47a1a1f628818a568af8845c407f410 100644 (file)
@@ -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
index 494ab66578361c7f751bb8e0dddcb603987310ec..64604ba2719a52b0ae0d7e4f60388261d60ad3a5 100644 (file)
@@ -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
index 2e1b820a2950914e4c3cf9c8e9198900afd08c6d..e9ff1d67bc3f82c9e4f002569c7794146fa5c538 100644 (file)
@@ -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