QNAP (Busybox v1.01) keeps wiping the gateway after reboot/power cycle

Not a professional coder by any means as you will soon be able to tell... So apologies in advance for my lack of knowledge! I have a QNAP server running busybox 1.01. I noticed after a power hit that the server lost its gateway. Looking further into it, I found out that any time the server is power cycled, it will startup with gateway intact, then 3-4 minutes later will drop the gateway.

After some googling and chatgpt'ing. I have tried to modify /etc/init.d/network.sh, which AI tells me is the root cause. But that isn't persistent after reboot, likely because it's being generated from a firmware image at startup and may not be modifiable.

So instead of trying to fix the root cause, I figured I could create a script to run once after startup as a band-aid of sorts to correct the problem. I keep running into the same problem of trying to modify either rcS or the inittab to include a gatewayfix.sh script I created to force correct the issue. But nothing seems persistent after reboot. I also tried to modify the .qpkg.conf to add my script and register the process, but after reboot, it appends "Enable = False" and "Incomplete_Conf = 1" to my process entry. So I am wondering if any QNAP/BusyBox gurus can point me in the right direction for making changes that will stay persistent after reboot.

gatewayfix.sh contents below.

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论