- systemd unit for ippp [SME: 12876] - systemd unit for wan [SME: 12875]
15 lines
437 B
Bash
15 lines
437 B
Bash
#! /bin/sh
|
|
|
|
ISDN=$(/sbin/e-smith/config getprop isdn status)
|
|
if [ "$ISDN" = "enabled" ]
|
|
then
|
|
# Stop and then start. If the units are not running yet, they will be started.
|
|
/usr/bin/systemctl restart ippp
|
|
sleep 10
|
|
# TODO check here that ISDN device is available!!
|
|
fi
|
|
echo 1 > /proc/sys/net/ipv4/ip_forward
|
|
echo 2 > /proc/sys/net/ipv4/ip_dynaddr
|
|
# echo 7 > /proc/sys/net/ipv4/ip_dynaddr
|
|
exec /usr/sbin/diald -daemon
|