2023-10-26 11:24:52 +01:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
ISDN=$(/sbin/e-smith/config getprop isdn status)
|
|
|
|
if [ "$ISDN" = "enabled" ]
|
|
|
|
then
|
2025-03-06 17:11:29 -05:00
|
|
|
# Stop and then start. If the units are not running yet, they will be started.
|
|
|
|
/usr/bin/systemctl restart ippp
|
2023-10-26 11:24:52 +01:00
|
|
|
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
|