diff --git a/package/gluon-core/files/etc/uci-defaults/zzz-gluon-upgrade b/package/gluon-core/files/etc/uci-defaults/zzz-gluon-upgrade index da82ab8b..fe1897d8 100755 --- a/package/gluon-core/files/etc/uci-defaults/zzz-gluon-upgrade +++ b/package/gluon-core/files/etc/uci-defaults/zzz-gluon-upgrade @@ -5,6 +5,9 @@ UPGRADE_DIR=/lib/gluon/upgrade VERSION_DIR=/lib/gluon/version +mkdir -p "$VERSION_DIR" + + version_of() { opkg status "gluon-$1" | grep '^Version: ' | cut -d' ' -f 2 }