Skip to content

Commit 43146de

Browse files
authored
fix: several packages were disabled after updates (#1513)
1 parent d312667 commit 43146de

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

packages/netifyd/files/etc/uci-defaults/99-netify-v4-migrate.uci-default

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,9 @@ if [ -d /etc/netify.d ]; then
2727
rm -rf /etc/netify.d
2828
/usr/sbin/dpi-update
2929
fi
30+
31+
# Ensure netifyd service is enabled and started at boot
32+
if ! /etc/init.d/netifyd enabled; then
33+
/etc/init.d/netifyd enable
34+
/etc/init.d/netifyd start
35+
fi

packages/ns-dpi/files/99-dpi-license-update-cron.uci-defaults

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,10 @@
1111

1212
if ! grep -q '/etc/init.d/dpi-license-update' /etc/crontabs/root; then
1313
echo '0 0 * * * sleep $(( RANDOM % 300 )); /etc/init.d/dpi-license-update start' >> /etc/crontabs/root
14+
fi
15+
16+
# Ensure dpi-license-update service is enabled at boot
17+
if ! /etc/init.d/dpi-license-update enabled; then
18+
/etc/init.d/dpi-license-update enable
19+
/etc/init.d/dpi-license-update start
1420
fi

packages/ns-flashstart/files/uci-default

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,9 @@ then
5050
uci -q set flashstart.global.log_level=warning
5151
uci commit flashstart
5252
fi
53+
54+
# Ensure ns-flashstart service is enabled and started at boot
55+
if ! /etc/init.d/ns-flashstart enabled; then
56+
/etc/init.d/ns-flashstart enable
57+
/etc/init.d/ns-flashstart start
58+
fi

0 commit comments

Comments
 (0)