mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
- Most fundamental uci mapping to proposed XPON.ONU.i.ANI.i.Enable object in 2.16 - The init scripts to procd trigger relevant components
25 lines
391 B
Bash
Executable file
25 lines
391 B
Bash
Executable file
#!/bin/sh /etc/rc.common
|
|
|
|
START=19
|
|
STOP=10
|
|
|
|
USE_PROCD=1
|
|
|
|
. /lib/functions.sh
|
|
include /lib/xpon
|
|
|
|
start_service() {
|
|
if [ "$(uci -q get xpon.ani.enable)" == "1" ]; then
|
|
init_xpon
|
|
fi
|
|
}
|
|
|
|
stop_service() {
|
|
# stopping omcid does not bring down the pon link, which should happen
|
|
# if ANI is disabled or stopped (go to O1)
|
|
deinit_xpon
|
|
}
|
|
|
|
service_triggers() {
|
|
procd_add_reload_trigger "xpon"
|
|
}
|