mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 09:32:34 +00:00
Added cpm init.d file to list installed package on remote APs Signed-off-by: Kumiko18 <alex18_huang@accton.com>
15 lines
492 B
Bash
Executable File
15 lines
492 B
Bash
Executable File
#!/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
|
|
}
|