mirror of
https://github.com/remittor/zapret-openwrt.git
synced 2026-01-27 12:50:35 +03:00
makefile: Cleanup custom.d directory
This commit is contained in:
@@ -251,6 +251,10 @@ if [ -z "$${IPKG_INSTROOT}" ]; then
|
|||||||
chmod 644 $${ZAPRET_DIR}/ipset_def/*.txt >/dev/null 2>&1
|
chmod 644 $${ZAPRET_DIR}/ipset_def/*.txt >/dev/null 2>&1
|
||||||
chmod 644 $${ZAPRET_DIR}/init.d/openwrt/custom.d/*.sh >/dev/null 2>&1
|
chmod 644 $${ZAPRET_DIR}/init.d/openwrt/custom.d/*.sh >/dev/null 2>&1
|
||||||
chmod 644 $${ZAPRET_DIR}/config* >/dev/null 2>&1
|
chmod 644 $${ZAPRET_DIR}/config* >/dev/null 2>&1
|
||||||
|
# cleanup custom.d directory
|
||||||
|
rm -f $${ZAPRET_DIR}/init.d/openwrt/custom.d/*-opkg*
|
||||||
|
rm -f $${ZAPRET_DIR}/init.d/openwrt/custom.d/*.opkg*
|
||||||
|
rm -f $${ZAPRET_DIR}/init.d/openwrt/custom.d/*.apk*
|
||||||
# creating main config if its not exists
|
# creating main config if its not exists
|
||||||
if [ ! -f "$${ZAPRET_CONFIG}" ]; then
|
if [ ! -f "$${ZAPRET_CONFIG}" ]; then
|
||||||
cp -f "$${ZAPRET_CONFIG_DEF}" "$${ZAPRET_CONFIG}"
|
cp -f "$${ZAPRET_CONFIG_DEF}" "$${ZAPRET_CONFIG}"
|
||||||
|
|||||||
@@ -193,6 +193,9 @@ function init_before_start
|
|||||||
[ ! -f "$HOSTLIST_FN" ] && touch "$HOSTLIST_FN"
|
[ ! -f "$HOSTLIST_FN" ] && touch "$HOSTLIST_FN"
|
||||||
chmod 644 $ZAPRET_BASE/ipset/*.txt
|
chmod 644 $ZAPRET_BASE/ipset/*.txt
|
||||||
chmod 666 $ZAPRET_BASE/ipset/*.log
|
chmod 666 $ZAPRET_BASE/ipset/*.log
|
||||||
|
rm -f $ZAPRET_BASE/init.d/openwrt/custom.d/*-opkg*
|
||||||
|
rm -f $ZAPRET_BASE/init.d/openwrt/custom.d/*.opkg*
|
||||||
|
rm -f $ZAPRET_BASE/init.d/openwrt/custom.d/*.apk*
|
||||||
rm -f /tmp/$ZAPRET_CFG_NAME+*.log
|
rm -f /tmp/$ZAPRET_CFG_NAME+*.log
|
||||||
#*/
|
#*/
|
||||||
if [ "$DAEMON_LOG_ENABLE" = "1" ]; then
|
if [ "$DAEMON_LOG_ENABLE" = "1" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user