From df7872e3f0d07b78c6c96a06939b0045563c0c43 Mon Sep 17 00:00:00 2001 From: Padmalochan Mohapatra Date: Mon, 22 May 2023 08:59:28 +0000 Subject: [PATCH] ponmngr : Respawn ponmngr if at all there is a failure due to initialization delay --- ponmngr/files/airoha/lib/xpon/airoha.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ponmngr/files/airoha/lib/xpon/airoha.sh b/ponmngr/files/airoha/lib/xpon/airoha.sh index 49b872581..bce54f59c 100644 --- a/ponmngr/files/airoha/lib/xpon/airoha.sh +++ b/ponmngr/files/airoha/lib/xpon/airoha.sh @@ -17,14 +17,15 @@ init_xpon() { procd_open_instance ponmgr_cfg procd_set_param command /userfs/bin/ponmgr_cfg + procd_set_param respawn procd_close_instance procd_open_instance omci procd_set_param command /userfs/bin/omci + procd_set_param respawn procd_close_instance } deinit_xpon() { - killall -9 omci 2>/dev/null - killall -9 ponmgr_cfg 2>/dev/null + return }