Skip to content

Commit

Permalink
add install autostart
Browse files Browse the repository at this point in the history
  • Loading branch information
rufengsuixing committed Nov 24, 2019
1 parent 5c8ede5 commit c724ffa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=luci-app-adguardhome
PKG_VERSION:=1.4
PKG_RELEASE:=6
PKG_RELEASE:=7

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)

Expand Down Expand Up @@ -46,6 +46,10 @@ endef
define Package/luci-app-adguardhome/postinst
#!/bin/sh
/etc/init.d/AdGuardHome enable >/dev/null 2>&1
enable=$(uci get AdGuardHome.AdGuardHome.enable)
if [ "$enable"x == "1"x ]; then
/etc/init.d/AdGuardHome start
fi
exit 0
endef

Expand Down

0 comments on commit c724ffa

Please sign in to comment.