initial commit of file from CVS for e-smith-base on Thu 26 Oct 11:24:52 BST 2023
This commit is contained in:
0
root/var/service/wan/down
Normal file
0
root/var/service/wan/down
Normal file
7
root/var/service/wan/log/run
Normal file
7
root/var/service/wan/log/run
Normal file
@@ -0,0 +1,7 @@
|
||||
#! /bin/sh
|
||||
|
||||
exec \
|
||||
/usr/local/bin/setuidgid smelog \
|
||||
/usr/local/bin/multilog t s5000000 \
|
||||
/var/log/wan
|
||||
|
0
root/var/service/wan/log/supervise/.gitignore
vendored
Normal file
0
root/var/service/wan/log/supervise/.gitignore
vendored
Normal file
12
root/var/service/wan/run
Normal file
12
root/var/service/wan/run
Normal file
@@ -0,0 +1,12 @@
|
||||
#! /bin/sh
|
||||
|
||||
exec 2>&1
|
||||
config=$(/sbin/e-smith/config getprop ExternalInterface Configuration)
|
||||
|
||||
if [ -x run.$config ]
|
||||
then
|
||||
exec ./run.$config
|
||||
fi
|
||||
|
||||
echo script run.$config not found - please report this as a bug
|
||||
sleep 100
|
31
root/var/service/wan/run.dhclient
Normal file
31
root/var/service/wan/run.dhclient
Normal file
@@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
#----------------------------------------------------------------------
|
||||
# copyright (C) 1999-2006 Mitel Networks Corporation
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#
|
||||
#----------------------------------------------------------------------
|
||||
exec 2>&1
|
||||
|
||||
. ./dhclient.config
|
||||
|
||||
configfile=/var/lib/dhclient/dhclient-$interface.conf
|
||||
leasefile=/var/lib/dhclient/dhclient-$interface.leases
|
||||
|
||||
export PEERDNS=no
|
||||
exec /sbin/dhclient -d \
|
||||
-cf $configfile \
|
||||
-lf $leasefile \
|
||||
$interface
|
13
root/var/service/wan/run.dialup
Normal file
13
root/var/service/wan/run.dialup
Normal file
@@ -0,0 +1,13 @@
|
||||
#! /bin/sh
|
||||
|
||||
ISDN=$(/sbin/e-smith/config getprop isdn status)
|
||||
if [ "$ISDN" = "enabled" ]
|
||||
then
|
||||
sv u /service/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
|
4
root/var/service/wan/run.disabled
Normal file
4
root/var/service/wan/run.disabled
Normal file
@@ -0,0 +1,4 @@
|
||||
#! /bin/sh
|
||||
|
||||
echo run.disabled run - please report this as a bug
|
||||
sleep 120
|
32
root/var/service/wan/run.pppoe
Normal file
32
root/var/service/wan/run.pppoe
Normal file
@@ -0,0 +1,32 @@
|
||||
#!/bin/sh
|
||||
#----------------------------------------------------------------------
|
||||
# copyright (C) 2002 Mitel Networks Corporation
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#
|
||||
# Technical support for this program is available from Mitel Networks
|
||||
# Please visit our web site www.mitel.com/sme/ for details.
|
||||
#----------------------------------------------------------------------
|
||||
exec 2>&1
|
||||
|
||||
. ./run.pppoe.conf
|
||||
|
||||
extaddr=$(/sbin/e-smith/config getprop ExternalInterface IPAddress)
|
||||
|
||||
exec \
|
||||
/usr/local/bin/softlimit -m $PPPD_MLIMIT \
|
||||
/usr/bin/setsid \
|
||||
/usr/sbin/pppd ${extaddr:+$extaddr:} \
|
||||
file pppoe.pppd.conf
|
10
root/var/service/wan/run.static
Normal file
10
root/var/service/wan/run.static
Normal file
@@ -0,0 +1,10 @@
|
||||
#! /usr/bin/perl
|
||||
|
||||
use warnings;
|
||||
use strict;
|
||||
use esmith::ConfigDB;
|
||||
use POSIX;
|
||||
|
||||
my $db = esmith::ConfigDB->open_ro;
|
||||
system("/sbin/ifup", $db->get_prop('ExternalInterface', 'Name'));
|
||||
pause();
|
0
root/var/service/wan/supervise/.gitignore
vendored
Normal file
0
root/var/service/wan/supervise/.gitignore
vendored
Normal file
Reference in New Issue
Block a user