|
@@ -136,7 +136,7 @@
|
|
|
code=$?
|
|
|
stdout=$(cat /tmp/opkg.out)
|
|
|
stderr=$(cat /tmp/opkg.err)
|
|
|
-@@ -47,6 +56,18 @@ case "$action" in
|
|
|
+@@ -47,6 +56,17 @@ case "$action" in
|
|
|
[ -n "$stdout" ] && json_add_string stdout "$stdout"
|
|
|
[ -n "$stderr" ] && json_add_string stderr "$stderr"
|
|
|
json_dump
|
|
@@ -145,7 +145,6 @@
|
|
|
+ install)
|
|
|
+ [[ "$(opkg list-installed | cut -f 1 -d ' ' | grep $@)" && ! "$(cat /etc/backup/user_installed.opkg | grep ^$@$)" ]] && {
|
|
|
+ echo $@ >>/etc/backup/user_installed.opkg
|
|
|
-+ killall -HUP rpcd
|
|
|
+ }
|
|
|
+ ;;
|
|
|
+ remove)
|