This patch updates the lsm event script, shorewall-lite part has been moved to /etc/lsm/script.d/ The shorewall-lite part is included in the shorewall-lite-4.5.6.2 package.
Signed-off-by: Edy Corak i...@loenshotel.de
Index: files/lsm.conf =================================================================== --- files/lsm.conf (Revision 33201) +++ files/lsm.conf (Arbeitskopie) @@ -8,10 +8,9 @@ # Debug level: 0 .. 8 are normal, 9 gives lots of stuff and 100 doesn't # bother to detach # -#debug=10 -#debug=9 +# debug=10 +# debug=9 debug=8 -# reopen_on_enodev=1 # # Defaults for the connection entries @@ -38,5 +37,3 @@ } include /etc/lsm/connections.conf - -#EOF Index: files/lsm_script =================================================================== --- files/lsm_script (Revision 33201) +++ files/lsm_script (Arbeitskopie) @@ -22,16 +22,6 @@ CONS_MISS=${12} AVG_RTT=${13} -if [ -f /usr/share/shorewall-lite/lib.base ]; then - VARDIR=/etc/shorewall-lite/state - STATEDIR=/etc/shorewall-lite -else - VARDIR=/var/lib/shorewall - STATEDIR=/etc/shorewall -fi - -[ -f ${STATEDIR}/vardir ] && . ${STATEDIR}/vardir - cat <<EOM | ssmtp ${WARN_EMAIL} Subject: "LSM: ${NAME} ${STATE}, DEV ${DEVICE}" @@ -62,16 +52,12 @@ EOM -if [ ${STATE} = up ]; then - echo 0 > ${VARDIR}/${DEVICE}.status # Uncomment this line if you are running Shorewall 4.4.x or earlier - ${VARDIR}/firewall enable ${DEVICE} -else - echo 1 > ${VARDIR}/${DEVICE}.status # Uncomment this line if you are running Shorewall 4.4.x or earlier - ${VARDIR}/firewall disable ${DEVICE} -fi +cd /etc/lsm/script.d/ +for script in $(ls); do + if [ ! -x $script ]; then + continue + fi + ./$script "$@" +done -/sbin/shorewall-lite show routing > /var/log/lsm - exit 0 - -#EOF
signature.asc
Description: Digital signature
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel