mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
layer2 procidifed
This commit is contained in:
parent
897eb0a385
commit
e8bd08ebcd
5 changed files with 42 additions and 34 deletions
|
|
@ -5,14 +5,9 @@
|
|||
include /lib/network
|
||||
|
||||
START=21
|
||||
boot() {
|
||||
vlanctl --if-suffix .
|
||||
add_ebtables_default_arp
|
||||
start
|
||||
}
|
||||
USE_PROCD=1
|
||||
|
||||
|
||||
start() {
|
||||
start_service() {
|
||||
local AnnexM
|
||||
local GDmt
|
||||
local Glite
|
||||
|
|
@ -94,7 +89,16 @@ start() {
|
|||
|
||||
stop() {
|
||||
echo "Stopping DSL"
|
||||
##command kills the board
|
||||
#xdslctl stop
|
||||
xdslctl stop
|
||||
}
|
||||
|
||||
boot() {
|
||||
vlanctl --if-suffix .
|
||||
add_ebtables_default_arp
|
||||
start
|
||||
}
|
||||
|
||||
service_triggers() {
|
||||
procd_add_reload_trigger layer2_interface
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,9 @@
|
|||
|
||||
. /lib/functions.sh
|
||||
include /lib/network
|
||||
|
||||
START=21
|
||||
USE_PROCD=1
|
||||
|
||||
checkpvc() {
|
||||
local retur
|
||||
|
|
@ -126,13 +128,7 @@ remove_netdevices() {
|
|||
done
|
||||
}
|
||||
|
||||
boot() {
|
||||
#xdslctl start
|
||||
echo "Boot ADSL"
|
||||
start
|
||||
}
|
||||
|
||||
start() {
|
||||
start_service() {
|
||||
local adslstatus
|
||||
echo "Starting ADSL"
|
||||
config_load layer2_interface
|
||||
|
|
@ -144,15 +140,15 @@ start() {
|
|||
fi
|
||||
}
|
||||
|
||||
stop() {
|
||||
stop_service() {
|
||||
echo "Stopping ADSL"
|
||||
|
||||
#xtmctl stop
|
||||
xtmctl stop
|
||||
remove_netdevices
|
||||
}
|
||||
|
||||
restart() {
|
||||
stop
|
||||
start
|
||||
service_triggers() {
|
||||
procd_add_reload_trigger layer2_interface_adsl
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
include /lib/network
|
||||
|
||||
START=21
|
||||
USE_PROCD=1
|
||||
|
||||
removeethernet() {
|
||||
config_get ifname $1 ifname
|
||||
|
|
@ -47,16 +48,21 @@ boot() {
|
|||
ifconfig $baseifname up
|
||||
}
|
||||
|
||||
start() {
|
||||
start_service() {
|
||||
local baseifname
|
||||
echo "Setting up Ethernet WAN"
|
||||
config_load layer2_interface_ethernet
|
||||
config_foreach addethernet ethernet_interface
|
||||
}
|
||||
|
||||
stop() {
|
||||
stop_service() {
|
||||
local ifname
|
||||
config_load layer2_interface_ethernet
|
||||
config_foreach removeethernet ethernet_interface
|
||||
}
|
||||
|
||||
service_triggers() {
|
||||
procd_add_reload_trigger layer2_interface_ethernet
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,9 @@
|
|||
|
||||
. /lib/functions.sh
|
||||
include /lib/network
|
||||
|
||||
START=21
|
||||
USE_PROCD=1
|
||||
|
||||
checkptm() {
|
||||
local retur
|
||||
|
|
@ -67,7 +69,7 @@ remove_netdevices() {
|
|||
unset IFS
|
||||
}
|
||||
|
||||
start() {
|
||||
start_service() {
|
||||
local vdslstatus
|
||||
echo "Starting VDSL"
|
||||
config_load layer2_interface
|
||||
|
|
@ -80,14 +82,14 @@ start() {
|
|||
fi
|
||||
}
|
||||
|
||||
stop() {
|
||||
stop_service() {
|
||||
echo "Stopping VDSL"
|
||||
#xtmctl stop
|
||||
xtmctl stop
|
||||
remove_netdevices
|
||||
}
|
||||
|
||||
restart() {
|
||||
stop
|
||||
start
|
||||
service_triggers() {
|
||||
procd_add_reload_trigger layer2_interface_vdsl
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
include /lib/network
|
||||
|
||||
START=21
|
||||
USE_PROCD=1
|
||||
|
||||
vlan_inf_conf() {
|
||||
local baseifname
|
||||
|
|
@ -22,7 +23,7 @@ boot() {
|
|||
echo "VLAN does not run at boot"
|
||||
}
|
||||
|
||||
start() {
|
||||
start_service() {
|
||||
local vdslstatus
|
||||
echo "Starting VLAN"
|
||||
|
||||
|
|
@ -30,13 +31,12 @@ start() {
|
|||
config_foreach vlan_inf_conf vlan_interface
|
||||
}
|
||||
|
||||
stop() {
|
||||
stop_service() {
|
||||
echo "Stopping VLAN"
|
||||
removeall_vlandevices
|
||||
}
|
||||
|
||||
restart() {
|
||||
stop
|
||||
start
|
||||
service_triggers() {
|
||||
procd_add_reload_trigger layer2_interface_vlan
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue