#!/bin/sh [ "$1" = "pre-cpkg" ] || exit 0 eval "$(llxcfg-showvars SRV_IP SRV_BITMASK)" if [ "$SRV_IP" ] ; then llxcfg-systemvars add "GUARD_IP=$SRV_IP" [ -z "$SRV_BITMASK" ] || llxcfg-systemvars add "GUARD_LAN_LIST=$SRV_IP/$SRV_BITMASK" fi llxcfg-systemvars add "GUARD_MAX_CHILD=120" "GUARD_MAX_SPARECHILD=32" "GUARD_ENABLED=yes" exit 0