Browse Source

init.d: fix return status in some sysv functions

Otherwise exit status is false, therefore OpenRC decides that service
startup failed.
pull/80/head
Maxim Karasev 5 years ago
parent
commit
91ea1b9394
  1. 4
      init.d/sysv/functions

4
init.d/sysv/functions

@ -168,7 +168,7 @@ dnat6_target()
} }
eval $DVAR="$DNAT6_TARGET" eval $DVAR="$DNAT6_TARGET"
} }
[ -n "$2" ] && eval $2="$DNAT6_TARGET" [ -z "$2" ] || eval $2="$DNAT6_TARGET"
} }
prepare_tpws_fw4() prepare_tpws_fw4()
@ -592,7 +592,7 @@ zapret_do_firewall()
existf zapret_custom_firewall && zapret_custom_firewall $1 existf zapret_custom_firewall && zapret_custom_firewall $1
;; ;;
esac esac
[ "$1" = 0 ] && unprepare_tpws_fw [ "$1" != 0 ] || unprepare_tpws_fw
} }
zapret_apply_firewall() zapret_apply_firewall()
{ {

Loading…
Cancel
Save