mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
ponmngr: handled equipment-id from uci config
removed unwanted demon bcm_msgd
This commit is contained in:
parent
f7087bb8c7
commit
dd12c2574f
1 changed files with 7 additions and 3 deletions
|
|
@ -16,10 +16,14 @@ set_equipment_id() {
|
|||
return
|
||||
}
|
||||
|
||||
generate_xpon_json() {
|
||||
eqid="$(uci -q get xpon.ani.equipment_id)"
|
||||
sn="$(uci -q get xpon.ani.serial_number)"
|
||||
echo "{\"ani\":{\"serial_number\":\"$sn\", \"equipment_id\":\"$eqid\"}}" >/tmp/xpon.json
|
||||
}
|
||||
|
||||
init_xpon() {
|
||||
procd_open_instance pon_msgd
|
||||
procd_set_param command bcm_msgd -c gpon
|
||||
procd_close_instance
|
||||
generate_xpon_json
|
||||
|
||||
procd_open_instance pon_daemon
|
||||
procd_set_param command omcid start -n
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue