mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
core161: reconnect only if ppp is used
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -119,9 +119,13 @@ ldconfig
|
|||||||
# Filesytem cleanup
|
# Filesytem cleanup
|
||||||
/usr/local/bin/filesystem-cleanup
|
/usr/local/bin/filesystem-cleanup
|
||||||
|
|
||||||
# restart firewall and reconnect
|
# restart firewall
|
||||||
/etc/init.d/firewall restart
|
/etc/init.d/firewall restart
|
||||||
/usr/local/bin/connscheduler reconnect
|
|
||||||
|
# reconnect if red is ppp0
|
||||||
|
if [ $(</var/ipfire/red/iface) = "ppp0" ]; then
|
||||||
|
/usr/local/bin/connscheduler reconnect
|
||||||
|
fi
|
||||||
|
|
||||||
# Start services
|
# Start services
|
||||||
if grep -q "ENABLED=on" /var/ipfire/vpn/settings; then
|
if grep -q "ENABLED=on" /var/ipfire/vpn/settings; then
|
||||||
|
|||||||
Reference in New Issue
Block a user