Compare commits

...

1 Commits

Author SHA1 Message Date
Kumiko18
5903ef6738 WIFI-14588: Cloud Package Manager
Added cpm init.d file to list installed package on remote APs

Signed-off-by: Kumiko18 <alex18_huang@accton.com>
2025-06-25 01:08:44 +00:00

View File

@@ -0,0 +1,14 @@
#!/bin/sh /etc/rc.common
START=90
STOP=01
boot() {
mkdir -p /tmp/cpm/ || { logger -t init "Failed to create /tmp/cpm"; exit 1; }
opkg list-installed > /tmp/packages.state || { logger -t init "Failed to list packages"; exit 1; }
if [ -x /usr/share/ucentral/package_list.uc ]; then
/usr/share/ucentral/package_list.uc || { logger -t init "Failed to execute package_list.uc"; exit 1; }
else
logger -t init "package_list.uc not found or not executable"
fi
}