diff --git a/cdist/conf/type/__package_update_index/explorer/type b/cdist/conf/type/__package_update_index/explorer/type index c98e1e67..a2a61144 100644 --- a/cdist/conf/type/__package_update_index/explorer/type +++ b/cdist/conf/type/__package_update_index/explorer/type @@ -27,6 +27,7 @@ else debian|ubuntu|devuan) echo "apt" ;; archlinux) echo "pacman" ;; alpine) echo "apk" ;; + openwrt) echo "opkg" ;; *) echo "Don't know how to manage packages on: $os" >&2 exit 1 diff --git a/cdist/conf/type/__package_update_index/gencode-remote b/cdist/conf/type/__package_update_index/gencode-remote index a10c16d3..3069280f 100755 --- a/cdist/conf/type/__package_update_index/gencode-remote +++ b/cdist/conf/type/__package_update_index/gencode-remote @@ -64,6 +64,10 @@ case "$type" in echo "apk update" echo "apk package database updated." >>"$__messages_out" ;; + opkg) + echo "opkg update" + echo "opkg package database updated." >>"$__messages_out" + ;; *) echo "Don't know how to manage packages for type: $type" >&2 exit 1 diff --git a/cdist/conf/type/__package_update_index/man.rst b/cdist/conf/type/__package_update_index/man.rst index 3cd787b9..c36cb1f7 100644 --- a/cdist/conf/type/__package_update_index/man.rst +++ b/cdist/conf/type/__package_update_index/man.rst @@ -26,6 +26,7 @@ type * apt for Debian * yum for Red Hat * pacman for Arch Linux + * opkg for OpenWrt maxage Available for package manager apt and pacman, max time in seconds since