diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/bin/ubus b/opkg-feed/installer/openwrt-sdxlemur-skel/bin/ubus new file mode 100755 index 0000000..4a54a13 Binary files /dev/null and b/opkg-feed/installer/openwrt-sdxlemur-skel/bin/ubus differ diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/etc/hotplug-preinit.json b/opkg-feed/installer/openwrt-sdxlemur-skel/etc/hotplug-preinit.json new file mode 100644 index 0000000..658c685 --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/etc/hotplug-preinit.json @@ -0,0 +1,18 @@ +[ + [ "case", "ACTION", { + "add": [ + [ "if", + [ "has", "FIRMWARE" ], + [ + [ "exec", "/sbin/hotplug-call", "%SUBSYSTEM%" ], + [ "load-firmware", "/lib/firmware" ], + [ "return" ] + ] + ] + ] + } ], + [ "if", + [ "eq", "SUBSYSTEM", "button" ], + [ "exec", "/etc/rc.button/failsafe" ] + ] +] diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/etc/hotplug.json b/opkg-feed/installer/openwrt-sdxlemur-skel/etc/hotplug.json new file mode 100644 index 0000000..b930b30 --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/etc/hotplug.json @@ -0,0 +1,87 @@ +[ + [ "case", "ACTION", { + "add": [ + [ "if", + [ "and", + [ "has", "MAJOR" ], + [ "has", "MINOR" ] + ], + [ + [ "if", + [ "eq", "DEVNAME", "null" ], + [ + [ "makedev", "/dev/%DEVNAME%", "0666" ], + [ "exec", "/bin/ln", "-s", "/proc/self/fd/0", "/dev/stdin" ], + [ "exec", "/bin/ln", "-s", "/proc/self/fd/1", "/dev/stdout" ], + [ "exec", "/bin/ln", "-s", "/proc/self/fd/2", "/dev/stderr" ], + [ "return" ] + ] + ], + [ "if", + [ "eq", "DEVNAME", + [ "full", "ptmx", "zero", "tty", "net", "random", "urandom" ] + ], + [ + [ "makedev", "/dev/%DEVNAME%", "0666" ], + [ "return" ] + ] + ], + [ "if", + [ "regex", "DEVNAME", "^snd" ], + [ "makedev", "/dev/%DEVNAME%", "0660", "audio" ] + ], + [ "if", + [ "regex", "DEVNAME", "^tty" ], + [ "makedev", "/dev/%DEVNAME%", "0660", "dialout" ] + ], + [ "if", + [ "has", "DEVNAME" ], + [ "makedev", "/dev/%DEVNAME%", "0600" ] + ] + ] + ], + [ "if", + [ "has", "FIRMWARE" ], + [ + [ "exec", "/sbin/hotplug-call", "%SUBSYSTEM%" ], + [ "load-firmware", "/lib/firmware" ], + [ "return" ] + ] + ], + [ "if", + [ "regex", "DEVNAME", "^ttyGS" ], + [ "start-console", "%DEVNAME%" ] + ] + ], + "remove" : [ + [ "if", + [ "and", + [ "has", "DEVNAME" ], + [ "has", "MAJOR" ], + [ "has", "MINOR" ] + ], + [ "rm", "/dev/%DEVNAME%" ] + ] + ] + } ], + [ "if", + [ "and", + [ "has", "BUTTON" ], + [ "eq", "SUBSYSTEM", "button" ] + ], + [ "button", "/etc/rc.button/%BUTTON%" ] + ], + [ "if", + [ "and", + [ "eq", "SUBSYSTEM", "usb-serial" ], + [ "regex", "DEVNAME", + [ "^ttyUSB", "^ttyACM" ] + ] + ], + [ "exec", "/sbin/hotplug-call", "tty" ], + [ "if", + [ "isdir", "/etc/hotplug.d/%SUBSYSTEM%" ], + [ "exec", "/sbin/hotplug-call", "%SUBSYSTEM%" ] + ] + ] +] diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/lib/functions/procd.sh b/opkg-feed/installer/openwrt-sdxlemur-skel/lib/functions/procd.sh new file mode 100644 index 0000000..d834fa6 --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/lib/functions/procd.sh @@ -0,0 +1,658 @@ +# procd API: +# +# procd_open_service(name, [script]): +# Initialize a new procd command message containing a service with one or more instances +# +# procd_close_service() +# Send the command message for the service +# +# procd_open_instance([name]): +# Add an instance to the service described by the previous procd_open_service call +# +# procd_set_param(type, [value...]) +# Available types: +# command: command line (array). +# respawn info: array with 3 values $fail_threshold $restart_timeout $max_fail +# env: environment variable (passed to the process) +# data: arbitrary name/value pairs for detecting config changes (table) +# file: configuration files (array) +# netdev: bound network device (detects ifindex changes) +# limits: resource limits (passed to the process) +# user: $username to run service as +# group: $groupname to run service as +# pidfile: file name to write pid into +# stdout: boolean whether to redirect commands stdout to syslog (default: 0) +# stderr: boolean whether to redirect commands stderr to syslog (default: 0) +# facility: syslog facility used when logging to syslog (default: daemon) +# +# No space separation is done for arrays/tables - use one function argument per command line argument +# +# procd_close_instance(): +# Complete the instance being prepared +# +# procd_running(service, [instance]): +# Checks if service/instance is currently running +# +# procd_kill(service, [instance]): +# Kill a service instance (or all instances) +# +# procd_send_signal(service, [instance], [signal]) +# Send a signal to a service instance (or all instances) +# + +. "$IPKG_INSTROOT/usr/share/libubox/jshn.sh" + +PROCD_RELOAD_DELAY=1000 +_PROCD_SERVICE= + +procd_lock() { + local basescript=$(readlink "$initscript") + local service_name="$(basename ${basescript:-$initscript})" + + flock -n 1000 &> /dev/null + if [ "$?" != "0" ]; then + exec 1000>"$IPKG_INSTROOT/var/lock/procd_${service_name}.lock" + flock 1000 + if [ "$?" != "0" ]; then + logger "warning: procd flock for $service_name failed" + fi + fi +} + +_procd_call() { + local old_cb + + json_set_namespace procd old_cb + "$@" + json_set_namespace $old_cb +} + +_procd_wrapper() { + procd_lock + while [ -n "$1" ]; do + eval "$1() { _procd_call _$1 \"\$@\"; }" + shift + done +} + +_procd_ubus_call() { + local cmd="$1" + + [ -n "$PROCD_DEBUG" ] && json_dump >&2 + ubus call service "$cmd" "$(json_dump)" + json_cleanup +} + +_procd_open_service() { + local name="$1" + local script="$2" + + _PROCD_SERVICE="$name" + _PROCD_INSTANCE_SEQ=0 + + json_init + json_add_string name "$name" + [ -n "$script" ] && json_add_string script "$script" + json_add_object instances +} + +_procd_close_service() { + json_close_object + _procd_open_trigger + service_triggers + _procd_close_trigger + _procd_open_data + service_data + _procd_close_data + _procd_ubus_call ${1:-set} +} + +_procd_add_array_data() { + while [ "$#" -gt 0 ]; do + json_add_string "" "$1" + shift + done +} + +_procd_add_array() { + json_add_array "$1" + shift + _procd_add_array_data "$@" + json_close_array +} + +_procd_add_table_data() { + while [ -n "$1" ]; do + local var="${1%%=*}" + local val="${1#*=}" + [ "$1" = "$val" ] && val= + json_add_string "$var" "$val" + shift + done +} + +_procd_add_table() { + json_add_object "$1" + shift + _procd_add_table_data "$@" + json_close_object +} + +_procd_open_instance() { + local name="$1"; shift + + _PROCD_INSTANCE_SEQ="$(($_PROCD_INSTANCE_SEQ + 1))" + name="${name:-instance$_PROCD_INSTANCE_SEQ}" + json_add_object "$name" + [ -n "$TRACE_SYSCALLS" ] && json_add_boolean trace "1" +} + +_procd_open_trigger() { + let '_procd_trigger_open = _procd_trigger_open + 1' + [ "$_procd_trigger_open" -gt 1 ] && return + json_add_array "triggers" +} + +_procd_close_trigger() { + let '_procd_trigger_open = _procd_trigger_open - 1' + [ "$_procd_trigger_open" -lt 1 ] || return + json_close_array +} + +_procd_open_data() { + let '_procd_data_open = _procd_data_open + 1' + [ "$_procd_data_open" -gt 1 ] && return + json_add_object "data" +} + +_procd_close_data() { + let '_procd_data_open = _procd_data_open - 1' + [ "$_procd_data_open" -lt 1 ] || return + json_close_object +} + +_procd_open_validate() { + json_select .. + json_add_array "validate" +} + +_procd_close_validate() { + json_close_array + json_select triggers +} + +_procd_add_jail() { + json_add_object "jail" + json_add_string name "$1" + + shift + + for a in $@; do + case $a in + log) json_add_boolean "log" "1";; + ubus) json_add_boolean "ubus" "1";; + procfs) json_add_boolean "procfs" "1";; + sysfs) json_add_boolean "sysfs" "1";; + ronly) json_add_boolean "ronly" "1";; + requirejail) json_add_boolean "requirejail" "1";; + netns) json_add_boolean "netns" "1";; + userns) json_add_boolean "userns" "1";; + cgroupsns) json_add_boolean "cgroupsns" "1";; + esac + done + json_add_object "mount" + json_close_object + json_close_object +} + +_procd_add_jail_mount() { + local _json_no_warning=1 + + json_select "jail" + [ $? = 0 ] || return + json_select "mount" + [ $? = 0 ] || { + json_select .. + return + } + for a in $@; do + json_add_string "$a" "0" + done + json_select .. + json_select .. +} + +_procd_add_jail_mount_rw() { + local _json_no_warning=1 + + json_select "jail" + [ $? = 0 ] || return + json_select "mount" + [ $? = 0 ] || { + json_select .. + return + } + for a in $@; do + json_add_string "$a" "1" + done + json_select .. + json_select .. +} + +_procd_set_param() { + local type="$1"; shift + + case "$type" in + env|data|limits) + _procd_add_table "$type" "$@" + ;; + command|netdev|file|respawn|watch|watchdog) + _procd_add_array "$type" "$@" + ;; + error) + json_add_array "$type" + json_add_string "" "$@" + json_close_array + ;; + nice|term_timeout) + json_add_int "$type" "$1" + ;; + reload_signal) + json_add_int "$type" $(kill -l "$1") + ;; + pidfile|user|group|seccomp|capabilities|facility|\ + extroot|overlaydir|tmpoverlaysize) + json_add_string "$type" "$1" + ;; + stdout|stderr|no_new_privs) + json_add_boolean "$type" "$1" + ;; + esac +} + +_procd_add_timeout() { + [ "$PROCD_RELOAD_DELAY" -gt 0 ] && json_add_int "" "$PROCD_RELOAD_DELAY" + return 0 +} + +_procd_add_interface_trigger() { + json_add_array + _procd_add_array_data "$1" + shift + + json_add_array + _procd_add_array_data "if" + + json_add_array + _procd_add_array_data "eq" "interface" "$1" + shift + json_close_array + + json_add_array + _procd_add_array_data "run_script" "$@" + json_close_array + + json_close_array + _procd_add_timeout + json_close_array +} + +_procd_add_reload_interface_trigger() { + local script=$(readlink "$initscript") + local name=$(basename ${script:-$initscript}) + + _procd_open_trigger + _procd_add_interface_trigger "interface.*" $1 /etc/init.d/$name reload + _procd_close_trigger +} + +_procd_add_config_trigger() { + json_add_array + _procd_add_array_data "$1" + shift + + json_add_array + _procd_add_array_data "if" + + json_add_array + _procd_add_array_data "eq" "package" "$1" + shift + json_close_array + + json_add_array + _procd_add_array_data "run_script" "$@" + json_close_array + + json_close_array + _procd_add_timeout + json_close_array +} + +_procd_add_mount_trigger() { + json_add_array + _procd_add_array_data "$1" + local action="$2" + local multi=0 + shift ; shift + + json_add_array + _procd_add_array_data "if" + + if [ "$2" ]; then + json_add_array + _procd_add_array_data "or" + multi=1 + fi + + while [ "$1" ]; do + json_add_array + _procd_add_array_data "eq" "target" "$1" + shift + json_close_array + done + + [ $multi = 1 ] && json_close_array + + json_add_array + _procd_add_array_data "run_script" /etc/init.d/$name $action + json_close_array + + json_close_array + _procd_add_timeout + json_close_array +} + +_procd_add_action_mount_trigger() { + local action="$1" + shift + local mountpoints="$(procd_get_mountpoints "$@")" + [ "${mountpoints//[[:space:]]}" ] || return 0 + local script=$(readlink "$initscript") + local name=$(basename ${script:-$initscript}) + + _procd_open_trigger + _procd_add_mount_trigger mount.add $action "$mountpoints" + _procd_close_trigger +} + +procd_get_mountpoints() { + ( + __procd_check_mount() { + local cfg="$1" + local path="${2%%/}/" + local target + config_get target "$cfg" target + target="${target%%/}/" + [ "$path" != "${path##$target}" ] && echo "${target%%/}" + } + local mpath + config_load fstab + for mpath in "$@"; do + config_foreach __procd_check_mount mount "$mpath" + done + ) | sort -u +} + +_procd_add_restart_mount_trigger() { + _procd_add_action_mount_trigger restart "$@" +} + +_procd_add_reload_mount_trigger() { + _procd_add_action_mount_trigger reload "$@" +} + +_procd_add_raw_trigger() { + json_add_array + _procd_add_array_data "$1" + shift + local timeout=$1 + shift + + json_add_array + json_add_array + _procd_add_array_data "run_script" "$@" + json_close_array + json_close_array + + json_add_int "" "$timeout" + + json_close_array +} + +_procd_add_reload_trigger() { + local script=$(readlink "$initscript") + local name=$(basename ${script:-$initscript}) + local file + + _procd_open_trigger + for file in "$@"; do + _procd_add_config_trigger "config.change" "$file" /etc/init.d/$name reload + done + _procd_close_trigger +} + +_procd_add_validation() { + _procd_open_validate + $@ + _procd_close_validate +} + +_procd_append_param() { + local type="$1"; shift + local _json_no_warning=1 + + json_select "$type" + [ $? = 0 ] || { + _procd_set_param "$type" "$@" + return + } + case "$type" in + env|data|limits) + _procd_add_table_data "$@" + ;; + command|netdev|file|respawn|watch|watchdog) + _procd_add_array_data "$@" + ;; + error) + json_add_string "" "$@" + ;; + esac + json_select .. +} + +_procd_close_instance() { + local respawn_vals + _json_no_warning=1 + if json_select respawn ; then + json_get_values respawn_vals + if [ -z "$respawn_vals" ]; then + local respawn_threshold=$(uci_get system.@service[0].respawn_threshold) + local respawn_timeout=$(uci_get system.@service[0].respawn_timeout) + local respawn_retry=$(uci_get system.@service[0].respawn_retry) + _procd_add_array_data ${respawn_threshold:-3600} ${respawn_timeout:-5} ${respawn_retry:-5} + fi + json_select .. + fi + + json_close_object +} + +_procd_add_instance() { + _procd_open_instance + _procd_set_param command "$@" + _procd_close_instance +} + +procd_running() { + local service="$1" + local instance="${2:-*}" + [ "$instance" = "*" ] || instance="'$instance'" + + json_init + json_add_string name "$service" + local running=$(_procd_ubus_call list | jsonfilter -l 1 -e "@['$service'].instances[$instance].running") + + [ "$running" = "true" ] +} + +_procd_kill() { + local service="$1" + local instance="$2" + + json_init + [ -n "$service" ] && json_add_string name "$service" + [ -n "$instance" ] && json_add_string instance "$instance" + _procd_ubus_call delete +} + +_procd_send_signal() { + local service="$1" + local instance="$2" + local signal="$3" + + case "$signal" in + [A-Z]*) signal="$(kill -l "$signal" 2>/dev/null)" || return 1;; + esac + + json_init + json_add_string name "$service" + [ -n "$instance" -a "$instance" != "*" ] && json_add_string instance "$instance" + [ -n "$signal" ] && json_add_int signal "$signal" + _procd_ubus_call signal +} + +_procd_status() { + local service="$1" + local instance="$2" + local data + + json_init + [ -n "$service" ] && json_add_string name "$service" + + data=$(_procd_ubus_call list | jsonfilter -e '@["'"$service"'"]') + [ -z "$data" ] && { echo "inactive"; return 3; } + + data=$(echo "$data" | jsonfilter -e '$.instances') + if [ -z "$data" ]; then + [ -z "$instance" ] && { echo "active with no instances"; return 0; } + data="[]" + fi + + [ -n "$instance" ] && instance="\"$instance\"" || instance='*' + if [ -z "$(echo "$data" | jsonfilter -e '$['"$instance"']')" ]; then + echo "unknown instance $instance"; return 4 + else + echo "running"; return 0 + fi +} + +procd_open_data() { + local name="$1" + json_set_namespace procd __procd_old_cb + json_add_object data +} + +procd_close_data() { + json_close_object + json_set_namespace $__procd_old_cb +} + +_procd_set_config_changed() { + local package="$1" + + json_init + json_add_string type config.change + json_add_object data + json_add_string package "$package" + json_close_object + + ubus call service event "$(json_dump)" +} + +procd_add_mdns_service() { + local service proto port txt_count=0 + service=$1; shift + proto=$1; shift + port=$1; shift + json_add_object "${service}_$port" + json_add_string "service" "_$service._$proto.local" + json_add_int port "$port" + for txt in "$@"; do + [ -z "$txt" ] && continue + txt_count=$((txt_count+1)) + [ $txt_count -eq 1 ] && json_add_array txt + json_add_string "" "$txt" + done + [ $txt_count -gt 0 ] && json_select .. + + json_select .. +} + +procd_add_mdns() { + procd_open_data + json_add_object "mdns" + procd_add_mdns_service "$@" + json_close_object + procd_close_data +} + +uci_validate_section() +{ + local _package="$1" + local _type="$2" + local _name="$3" + local _result + local _error + shift; shift; shift + _result=$(/sbin/validate_data "$_package" "$_type" "$_name" "$@" 2> /dev/null) + _error=$? + eval "$_result" + [ "$_error" = "0" ] || $(/sbin/validate_data "$_package" "$_type" "$_name" "$@" 1> /dev/null) + return $_error +} + +uci_load_validate() { + local _package="$1" + local _type="$2" + local _name="$3" + local _function="$4" + local _option + local _result + shift; shift; shift; shift + for _option in "$@"; do + eval "local ${_option%%:*}" + done + uci_validate_section "$_package" "$_type" "$_name" "$@" + _result=$? + [ -n "$_function" ] || return $_result + eval "$_function \"\$_name\" \"\$_result\"" +} + +_procd_wrapper \ + procd_open_service \ + procd_close_service \ + procd_add_instance \ + procd_add_raw_trigger \ + procd_add_config_trigger \ + procd_add_interface_trigger \ + procd_add_mount_trigger \ + procd_add_reload_trigger \ + procd_add_reload_interface_trigger \ + procd_add_action_mount_trigger \ + procd_add_reload_mount_trigger \ + procd_add_restart_mount_trigger \ + procd_open_trigger \ + procd_close_trigger \ + procd_open_instance \ + procd_close_instance \ + procd_open_validate \ + procd_close_validate \ + procd_add_jail \ + procd_add_jail_mount \ + procd_add_jail_mount_rw \ + procd_set_param \ + procd_append_param \ + procd_add_validation \ + procd_set_config_changed \ + procd_kill \ + procd_send_signal diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/lib/libblobmsg_json.so.20220515 b/opkg-feed/installer/openwrt-sdxlemur-skel/lib/libblobmsg_json.so.20220515 new file mode 100644 index 0000000..38faa0b Binary files /dev/null and b/opkg-feed/installer/openwrt-sdxlemur-skel/lib/libblobmsg_json.so.20220515 differ diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/lib/libjson_script.so.20220515 b/opkg-feed/installer/openwrt-sdxlemur-skel/lib/libjson_script.so.20220515 new file mode 100644 index 0000000..9e45b97 Binary files /dev/null and b/opkg-feed/installer/openwrt-sdxlemur-skel/lib/libjson_script.so.20220515 differ diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/lib/libsetlbf.so b/opkg-feed/installer/openwrt-sdxlemur-skel/lib/libsetlbf.so new file mode 100644 index 0000000..d510cb2 Binary files /dev/null and b/opkg-feed/installer/openwrt-sdxlemur-skel/lib/libsetlbf.so differ diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/lib/libubus.so.20220601 b/opkg-feed/installer/openwrt-sdxlemur-skel/lib/libubus.so.20220601 new file mode 100644 index 0000000..4a18111 Binary files /dev/null and b/opkg-feed/installer/openwrt-sdxlemur-skel/lib/libubus.so.20220601 differ diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/lib/libvalidate.so b/opkg-feed/installer/openwrt-sdxlemur-skel/lib/libvalidate.so new file mode 100644 index 0000000..c936337 Binary files /dev/null and b/opkg-feed/installer/openwrt-sdxlemur-skel/lib/libvalidate.so differ diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/sbin/askfirst b/opkg-feed/installer/openwrt-sdxlemur-skel/sbin/askfirst new file mode 100755 index 0000000..c5791b4 Binary files /dev/null and b/opkg-feed/installer/openwrt-sdxlemur-skel/sbin/askfirst differ diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/sbin/init b/opkg-feed/installer/openwrt-sdxlemur-skel/sbin/init new file mode 100755 index 0000000..2d5e175 Binary files /dev/null and b/opkg-feed/installer/openwrt-sdxlemur-skel/sbin/init differ diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/sbin/kmodloader b/opkg-feed/installer/openwrt-sdxlemur-skel/sbin/kmodloader new file mode 100755 index 0000000..ec24704 Binary files /dev/null and b/opkg-feed/installer/openwrt-sdxlemur-skel/sbin/kmodloader differ diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/sbin/procd b/opkg-feed/installer/openwrt-sdxlemur-skel/sbin/procd new file mode 100755 index 0000000..8f84c6e Binary files /dev/null and b/opkg-feed/installer/openwrt-sdxlemur-skel/sbin/procd differ diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/sbin/reload_config b/opkg-feed/installer/openwrt-sdxlemur-skel/sbin/reload_config new file mode 100755 index 0000000..3ae0de9 --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/sbin/reload_config @@ -0,0 +1,15 @@ +#!/bin/sh +rm -rf /var/run/config.check +mkdir -p /var/run/config.check +for config in /etc/config/*; do + file=${config##*/} + uci show "${file##*/}" > /var/run/config.check/$file +done +MD5FILE=/var/run/config.md5 +[ -f $MD5FILE ] && { + for c in $(md5sum -c $MD5FILE 2>/dev/null| grep FAILED | cut -d: -f1); do + ubus call service event "{ \"type\": \"config.change\", \"data\": { \"package\": \"$(basename $c)\" }}" + done +} +md5sum /var/run/config.check/* > $MD5FILE +rm -rf /var/run/config.check diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/sbin/service b/opkg-feed/installer/openwrt-sdxlemur-skel/sbin/service new file mode 100755 index 0000000..0ca7058 --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/sbin/service @@ -0,0 +1,30 @@ +#!/bin/sh + +main() { + local service="$1" + shift + + local boot status + + if [ -f "/etc/init.d/${service}" ]; then + /etc/init.d/"${service}" "$@" + exit "$?" + fi + + if [ -n "$service" ]; then + echo "Service \"$service\" not found:" + exit 1 + fi + + echo "Usage: $(basename "$0") [command]" + for service in /etc/init.d/* ; do + boot="$($service enabled && echo "enabled" || echo "disabled" )" + status="$( [ "$(ubus call service list "{ 'verbose': true, 'name': '$(basename "$service")' }" \ + | jsonfilter -q -e "@['$(basename "$service")'].instances[*].running" | uniq)" = "true" ] \ + && echo "running" || echo "stopped" )" + + printf "%-30s\\t%10s\\t%10s\\n" "$service" "$boot" "$status" + done +} + +main "$@" diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/sbin/ubusd b/opkg-feed/installer/openwrt-sdxlemur-skel/sbin/ubusd new file mode 100755 index 0000000..599663f Binary files /dev/null and b/opkg-feed/installer/openwrt-sdxlemur-skel/sbin/ubusd differ diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/sbin/udevtrigger b/opkg-feed/installer/openwrt-sdxlemur-skel/sbin/udevtrigger new file mode 100755 index 0000000..8f381f5 Binary files /dev/null and b/opkg-feed/installer/openwrt-sdxlemur-skel/sbin/udevtrigger differ diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/sbin/upgraded b/opkg-feed/installer/openwrt-sdxlemur-skel/sbin/upgraded new file mode 100755 index 0000000..9b80700 Binary files /dev/null and b/opkg-feed/installer/openwrt-sdxlemur-skel/sbin/upgraded differ diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/sbin/validate_data b/opkg-feed/installer/openwrt-sdxlemur-skel/sbin/validate_data new file mode 100755 index 0000000..fa82e7c Binary files /dev/null and b/opkg-feed/installer/openwrt-sdxlemur-skel/sbin/validate_data differ diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/bin/jshn b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/bin/jshn new file mode 100755 index 0000000..73d5b79 Binary files /dev/null and b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/bin/jshn differ diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/jshn.control b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/jshn.control new file mode 100644 index 0000000..09b2dfb --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/jshn.control @@ -0,0 +1,12 @@ +Package: jshn +Version: 2022-05-15-d2223ef9-1 +Depends: libc, libjson-c5, libubox20220515, libblobmsg-json20220515 +Source: feeds/base/package/libs/libubox +SourceName: jshn +License: ISC +Section: utils +SourceDateEpoch: 1654630618 +Maintainer: Felix Fietkau +Architecture: arm_cortex-a7_neon-vfpv4 +Installed-Size: 6340 +Description: Library for parsing and generating JSON from shell scripts diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/jshn.list b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/jshn.list new file mode 100644 index 0000000..94e78d0 --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/jshn.list @@ -0,0 +1,2 @@ +/usr/bin/jshn +/usr/share/libubox/jshn.sh diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/jshn.postinst b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/jshn.postinst new file mode 100755 index 0000000..3bba77c --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/jshn.postinst @@ -0,0 +1,5 @@ +#!/bin/sh +[ "${IPKG_NO_SCRIPT}" = "1" ] && exit 0 +[ -s ${IPKG_INSTROOT}/lib/functions.sh ] || exit 0 +. ${IPKG_INSTROOT}/lib/functions.sh +default_postinst $0 $@ diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/jshn.prerm b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/jshn.prerm new file mode 100755 index 0000000..12d06ec --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/jshn.prerm @@ -0,0 +1,4 @@ +#!/bin/sh +[ -s ${IPKG_INSTROOT}/lib/functions.sh ] || exit 0 +. ${IPKG_INSTROOT}/lib/functions.sh +default_prerm $0 $@ diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libblobmsg-json20220515.control b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libblobmsg-json20220515.control new file mode 100644 index 0000000..409482c --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libblobmsg-json20220515.control @@ -0,0 +1,14 @@ +Package: libblobmsg-json20220515 +Version: 2022-05-15-d2223ef9-1 +Depends: libc, libjson-c5, libubox20220515 +Provides: libblobmsg-json +Source: feeds/base/package/libs/libubox +SourceName: libblobmsg-json +License: ISC +Section: libs +SourceDateEpoch: 1654630618 +ABIVersion: 20220515 +Maintainer: Felix Fietkau +Architecture: arm_cortex-a7_neon-vfpv4 +Installed-Size: 3441 +Description: blobmsg <-> json conversion library diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libblobmsg-json20220515.list b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libblobmsg-json20220515.list new file mode 100644 index 0000000..dfcd465 --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libblobmsg-json20220515.list @@ -0,0 +1 @@ +/lib/libblobmsg_json.so.20220515 diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libblobmsg-json20220515.postinst b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libblobmsg-json20220515.postinst new file mode 100755 index 0000000..3bba77c --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libblobmsg-json20220515.postinst @@ -0,0 +1,5 @@ +#!/bin/sh +[ "${IPKG_NO_SCRIPT}" = "1" ] && exit 0 +[ -s ${IPKG_INSTROOT}/lib/functions.sh ] || exit 0 +. ${IPKG_INSTROOT}/lib/functions.sh +default_postinst $0 $@ diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libblobmsg-json20220515.prerm b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libblobmsg-json20220515.prerm new file mode 100755 index 0000000..12d06ec --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libblobmsg-json20220515.prerm @@ -0,0 +1,4 @@ +#!/bin/sh +[ -s ${IPKG_INSTROOT}/lib/functions.sh ] || exit 0 +. ${IPKG_INSTROOT}/lib/functions.sh +default_prerm $0 $@ diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libjson-script20220515.control b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libjson-script20220515.control new file mode 100644 index 0000000..335aea3 --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libjson-script20220515.control @@ -0,0 +1,14 @@ +Package: libjson-script20220515 +Version: 2022-05-15-d2223ef9-1 +Depends: libc, libubox20220515 +Provides: libjson-script +Source: feeds/base/package/libs/libubox +SourceName: libjson-script +License: ISC +Section: utils +SourceDateEpoch: 1654630618 +ABIVersion: 20220515 +Maintainer: Felix Fietkau +Architecture: arm_cortex-a7_neon-vfpv4 +Installed-Size: 4238 +Description: Minimalistic JSON based scripting engine diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libjson-script20220515.list b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libjson-script20220515.list new file mode 100644 index 0000000..b5776a6 --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libjson-script20220515.list @@ -0,0 +1 @@ +/lib/libjson_script.so.20220515 diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libjson-script20220515.postinst b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libjson-script20220515.postinst new file mode 100755 index 0000000..3bba77c --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libjson-script20220515.postinst @@ -0,0 +1,5 @@ +#!/bin/sh +[ "${IPKG_NO_SCRIPT}" = "1" ] && exit 0 +[ -s ${IPKG_INSTROOT}/lib/functions.sh ] || exit 0 +. ${IPKG_INSTROOT}/lib/functions.sh +default_postinst $0 $@ diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libjson-script20220515.prerm b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libjson-script20220515.prerm new file mode 100755 index 0000000..12d06ec --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libjson-script20220515.prerm @@ -0,0 +1,4 @@ +#!/bin/sh +[ -s ${IPKG_INSTROOT}/lib/functions.sh ] || exit 0 +. ${IPKG_INSTROOT}/lib/functions.sh +default_prerm $0 $@ diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libubus20220601.control b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libubus20220601.control new file mode 100644 index 0000000..7514b44 --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libubus20220601.control @@ -0,0 +1,14 @@ +Package: libubus20220601 +Version: 2022-06-01-2bebf93c-1 +Depends: libc, libubox20220515 +Provides: libubus +Source: feeds/base/package/system/ubus +SourceName: libubus +License: LGPL-2.1 +Section: libs +SourceDateEpoch: 1654425492 +ABIVersion: 20220601 +Maintainer: Felix Fietkau +Architecture: arm_cortex-a7_neon-vfpv4 +Installed-Size: 9107 +Description: OpenWrt RPC client library diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libubus20220601.list b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libubus20220601.list new file mode 100644 index 0000000..4101c96 --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libubus20220601.list @@ -0,0 +1 @@ +/lib/libubus.so.20220601 diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libubus20220601.postinst b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libubus20220601.postinst new file mode 100755 index 0000000..3bba77c --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libubus20220601.postinst @@ -0,0 +1,5 @@ +#!/bin/sh +[ "${IPKG_NO_SCRIPT}" = "1" ] && exit 0 +[ -s ${IPKG_INSTROOT}/lib/functions.sh ] || exit 0 +. ${IPKG_INSTROOT}/lib/functions.sh +default_postinst $0 $@ diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libubus20220601.prerm b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libubus20220601.prerm new file mode 100755 index 0000000..12d06ec --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/libubus20220601.prerm @@ -0,0 +1,4 @@ +#!/bin/sh +[ -s ${IPKG_INSTROOT}/lib/functions.sh ] || exit 0 +. ${IPKG_INSTROOT}/lib/functions.sh +default_prerm $0 $@ diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/procd.control b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/procd.control new file mode 100644 index 0000000..c077f12 --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/procd.control @@ -0,0 +1,14 @@ +Package: procd +Version: 2022-06-01-7a009685-3 +Depends: libc, ubusd, ubus, libjson-script20220515, ubox, libubox20220515, libubus20220601, libblobmsg-json20220515, libjson-c5, jshn +Conflicts: procd-selinux +Source: feeds/base/package/system/procd +SourceName: procd +License: GPL-2.0 +Section: base +Require-User: :dialout=20 :audio=29 +SourceDateEpoch: 1714426257 +Maintainer: John Crispin +Architecture: arm_cortex-a7_neon-vfpv4 +Installed-Size: 52551 +Description: OpenWrt system process manager diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/procd.list b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/procd.list new file mode 100644 index 0000000..98cad82 --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/procd.list @@ -0,0 +1,11 @@ +/etc/hotplug.json +/etc/hotplug-preinit.json +/lib/functions/procd.sh +/lib/libsetlbf.so +/sbin/askfirst +/sbin/init +/sbin/procd +/sbin/reload_config +/sbin/service +/sbin/udevtrigger +/sbin/upgraded diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/procd.postinst b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/procd.postinst new file mode 100755 index 0000000..3bba77c --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/procd.postinst @@ -0,0 +1,5 @@ +#!/bin/sh +[ "${IPKG_NO_SCRIPT}" = "1" ] && exit 0 +[ -s ${IPKG_INSTROOT}/lib/functions.sh ] || exit 0 +. ${IPKG_INSTROOT}/lib/functions.sh +default_postinst $0 $@ diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/procd.prerm b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/procd.prerm new file mode 100755 index 0000000..12d06ec --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/procd.prerm @@ -0,0 +1,4 @@ +#!/bin/sh +[ -s ${IPKG_INSTROOT}/lib/functions.sh ] || exit 0 +. ${IPKG_INSTROOT}/lib/functions.sh +default_prerm $0 $@ diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubox.control b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubox.control new file mode 100644 index 0000000..09cd05c --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubox.control @@ -0,0 +1,13 @@ +Package: ubox +Version: 2021-08-03-205defb5-2 +Depends: libc, libubox20220515, ubusd, ubus, libubus20220601, libuci20130104 +Alternatives: 100:/sbin/rmmod:/sbin/kmodloader, 100:/sbin/insmod:/sbin/kmodloader, 100:/sbin/lsmod:/sbin/kmodloader, 100:/sbin/modinfo:/sbin/kmodloader, 100:/sbin/modprobe:/sbin/kmodloader +Source: feeds/base/package/system/ubox +SourceName: ubox +License: GPL-2.0 +Section: base +SourceDateEpoch: 1643641405 +Maintainer: John Crispin +Architecture: arm_cortex-a7_neon-vfpv4 +Installed-Size: 14093 +Description: OpenWrt system helper toolbox diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubox.list b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubox.list new file mode 100644 index 0000000..ecc2dbe --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubox.list @@ -0,0 +1,3 @@ +/lib/libvalidate.so +/sbin/kmodloader +/sbin/validate_data diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubox.postinst b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubox.postinst new file mode 100755 index 0000000..3bba77c --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubox.postinst @@ -0,0 +1,5 @@ +#!/bin/sh +[ "${IPKG_NO_SCRIPT}" = "1" ] && exit 0 +[ -s ${IPKG_INSTROOT}/lib/functions.sh ] || exit 0 +. ${IPKG_INSTROOT}/lib/functions.sh +default_postinst $0 $@ diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubox.prerm b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubox.prerm new file mode 100755 index 0000000..12d06ec --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubox.prerm @@ -0,0 +1,4 @@ +#!/bin/sh +[ -s ${IPKG_INSTROOT}/lib/functions.sh ] || exit 0 +. ${IPKG_INSTROOT}/lib/functions.sh +default_prerm $0 $@ diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubus.control b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubus.control new file mode 100644 index 0000000..8158537 --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubus.control @@ -0,0 +1,12 @@ +Package: ubus +Version: 2022-06-01-2bebf93c-1 +Depends: libc, libubus20220601, libblobmsg-json20220515, ubusd +Source: feeds/base/package/system/ubus +SourceName: ubus +License: LGPL-2.1 +Section: base +SourceDateEpoch: 1654425492 +Maintainer: Felix Fietkau +Architecture: arm_cortex-a7_neon-vfpv4 +Installed-Size: 5688 +Description: OpenWrt RPC client utility diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubus.list b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubus.list new file mode 100644 index 0000000..e6f0d1e --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubus.list @@ -0,0 +1 @@ +/bin/ubus diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubus.postinst b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubus.postinst new file mode 100755 index 0000000..3bba77c --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubus.postinst @@ -0,0 +1,5 @@ +#!/bin/sh +[ "${IPKG_NO_SCRIPT}" = "1" ] && exit 0 +[ -s ${IPKG_INSTROOT}/lib/functions.sh ] || exit 0 +. ${IPKG_INSTROOT}/lib/functions.sh +default_postinst $0 $@ diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubus.prerm b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubus.prerm new file mode 100755 index 0000000..12d06ec --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubus.prerm @@ -0,0 +1,4 @@ +#!/bin/sh +[ -s ${IPKG_INSTROOT}/lib/functions.sh ] || exit 0 +. ${IPKG_INSTROOT}/lib/functions.sh +default_prerm $0 $@ diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubusd.control b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubusd.control new file mode 100644 index 0000000..4ba6e8b --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubusd.control @@ -0,0 +1,13 @@ +Package: ubusd +Version: 2022-06-01-2bebf93c-1 +Depends: libc, libubox20220515, libblobmsg-json20220515 +Source: feeds/base/package/system/ubus +SourceName: ubusd +License: LGPL-2.1 +Section: base +Require-User: ubus=81:ubus=81 +SourceDateEpoch: 1654425492 +Maintainer: Felix Fietkau +Architecture: arm_cortex-a7_neon-vfpv4 +Installed-Size: 10684 +Description: OpenWrt RPC daemon diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubusd.list b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubusd.list new file mode 100644 index 0000000..c06aa69 --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubusd.list @@ -0,0 +1 @@ +/sbin/ubusd diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubusd.postinst b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubusd.postinst new file mode 100755 index 0000000..3bba77c --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubusd.postinst @@ -0,0 +1,5 @@ +#!/bin/sh +[ "${IPKG_NO_SCRIPT}" = "1" ] && exit 0 +[ -s ${IPKG_INSTROOT}/lib/functions.sh ] || exit 0 +. ${IPKG_INSTROOT}/lib/functions.sh +default_postinst $0 $@ diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubusd.prerm b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubusd.prerm new file mode 100755 index 0000000..12d06ec --- /dev/null +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/info/ubusd.prerm @@ -0,0 +1,4 @@ +#!/bin/sh +[ -s ${IPKG_INSTROOT}/lib/functions.sh ] || exit 0 +. ${IPKG_INSTROOT}/lib/functions.sh +default_prerm $0 $@ diff --git a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/status b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/status index ae7cb88..31f40fc 100644 --- a/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/status +++ b/opkg-feed/installer/openwrt-sdxlemur-skel/usr/lib/opkg/status @@ -307,3 +307,59 @@ Status: install user installed Architecture: arm_cortex-a7_neon-vfpv4 Installed-Time: 1733796302 +Package: jshn +Version: 2022-05-15-d2223ef9-1 +Depends: libc, libjson-c5, libubox20220515, libblobmsg-json20220515 +Status: install user installed +Architecture: arm_cortex-a7_neon-vfpv4 +Installed-Time: 1733796303 + +Package: libblobmsg-json20220515 +Version: 2022-05-15-d2223ef9-1 +Depends: libc, libjson-c5, libubox20220515 +Status: install user installed +Architecture: arm_cortex-a7_neon-vfpv4 +Installed-Time: 1733796304 + +Package: libjson-script20220515 +Version: 2022-05-15-d2223ef9-1 +Depends: libc, libubox20220515 +Status: install user installed +Architecture: arm_cortex-a7_neon-vfpv4 +Installed-Time: 1733796305 + +Package: libubus20220601 +Version: 2022-06-01-2bebf93c-1 +Depends: libc, libubox20220515 +Status: install user installed +Architecture: arm_cortex-a7_neon-vfpv4 +Installed-Time: 1733796306 + +Package: procd +Version: 2022-06-01-7a009685-3 +Depends: libc, ubusd, ubus, libjson-script20220515, ubox, libubox20220515, libubus20220601, libblobmsg-json20220515, libjson-c5, jshn +Status: install user installed +Architecture: arm_cortex-a7_neon-vfpv4 +Installed-Time: 1733796307 + +Package: ubox +Version: 2021-08-03-205defb5-2 +Depends: libc, libubox20220515, ubusd, ubus, libubus20220601, libuci20130104 +Status: install user installed +Architecture: arm_cortex-a7_neon-vfpv4 +Installed-Time: 1733796308 + +Package: ubus +Version: 2022-06-01-2bebf93c-1 +Depends: libc, libubus20220601, libblobmsg-json20220515, ubusd +Status: install user installed +Architecture: arm_cortex-a7_neon-vfpv4 +Installed-Time: 1733796309 + +Package: ubusd +Version: 2022-06-01-2bebf93c-1 +Depends: libc, libubox20220515, libblobmsg-json20220515 +Status: install user installed +Architecture: arm_cortex-a7_neon-vfpv4 +Installed-Time: 1733796310 +