mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-28 17:12:22 +00:00
cpm: Cloud Package Manager
Added cpm init.d file to list installed package on remote APs Fixes: WIFI-14588 Signed-off-by: Kumiko18 <alex18_huang@accton.com>
This commit is contained in:
14
feeds/ucentral/ucentral-client/files/etc/init.d/cpm
Executable file
14
feeds/ucentral/ucentral-client/files/etc/init.d/cpm
Executable 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
|
||||
}
|
||||
Reference in New Issue
Block a user