see r39422, https://dev.openwrt.org/changeset/39422
Signed-off-by: Etienne CHAMPETIER <etienne.champet...@free.fr> --- contrib/package/luci/Makefile | 4 ---- modules/admin-core/ipkg/postinst | 1 - modules/admin-core/root/etc/init.d/luci_fixtime | 16 ---------------- 3 files changed, 21 deletions(-) delete mode 100755 modules/admin-core/root/etc/init.d/luci_fixtime diff --git a/contrib/package/luci/Makefile b/contrib/package/luci/Makefile index 7706645..ad98c0a 100644 --- a/contrib/package/luci/Makefile +++ b/contrib/package/luci/Makefile @@ -257,10 +257,6 @@ define module endef -define Package/luci-mod-admin-core/extra-install - touch $(1)/etc/init.d/luci_fixtime || true -endef - $(eval $(call module,admin-core,Web UI Core module,+luci-lib-web +luci-proto-core +luci-i18n-english)) $(eval $(call module,admin-mini,LuCI Essentials - stripped down and user-friendly,+luci-mod-admin-core @BROKEN)) $(eval $(call module,admin-full,LuCI Administration - full-featured for full control,+luci-mod-admin-core +luci-lib-ipkg)) diff --git a/modules/admin-core/ipkg/postinst b/modules/admin-core/ipkg/postinst index a756b5b..58d1471 100755 --- a/modules/admin-core/ipkg/postinst +++ b/modules/admin-core/ipkg/postinst @@ -1,7 +1,6 @@ #!/bin/sh [ -n "${IPKG_INSTROOT}" ] || { - /etc/init.d/luci_fixtime enabled || /etc/init.d/luci_fixtime enable /etc/init.d/luci_dhcp_migrate enabled || /etc/init.d/luci_dhcp_migrate enable exit 0 } diff --git a/modules/admin-core/root/etc/init.d/luci_fixtime b/modules/admin-core/root/etc/init.d/luci_fixtime deleted file mode 100755 index 154a786..0000000 --- a/modules/admin-core/root/etc/init.d/luci_fixtime +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh /etc/rc.common - -START=05 -STOP=95 - -start() { - cat <<' EOF' | lua -l luci.fs -l luci.util - - if (os.time() < 1000000000) then - os.execute('date -s ' .. os.date('%Y%m%d%H%M', luci.fs.mtime("/etc/init.d/luci_fixtime"))) - end - EOF -} - -stop() { - [[ -w /etc/init.d/luci_fixtime ]] && cat /dev/null >> /etc/init.d/luci_fixtime && touch /etc/init.d/luci_fixtime -} -- 1.8.5.3 _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel