--- shorewall.orig 2012-04-27 09:17:55.294272308 +0200 +++ shorewall 2012-04-27 09:20:17.701743427 +0200 @@ -1344,23 +1344,6 @@ ;; esac - temp=$(rsh_command /sbin/shorewall-lite show config 2> /dev/null | grep ^LITEDIR | sed 's/LITEDIR is //') - - [ -n "$temp" ] && litedir="$temp" - - temp=$(rsh_command /sbin/shorewall-lite show config 2> /dev/null | grep ^LIBEXEC | sed 's/LIBEXEC is //') - - if [ -n "$temp" ]; then - case $temp in - /*) - libexec="$temp" - ;; - *) - libexec=/usr/$temp - ;; - esac - fi - if [ -z "$getcaps" ]; then SHOREWALL_DIR=$(resolve_file $directory) ensure_config_path @@ -1378,6 +1361,23 @@ ensure_config_path fi + temp=$(rsh_command /sbin/shorewall-lite show config 2> /dev/null | grep ^LITEDIR | sed 's/LITEDIR is //') + + [ -n "$temp" ] && litedir="$temp" + + temp=$(rsh_command /sbin/shorewall-lite show config 2> /dev/null | grep ^LIBEXEC | sed 's/LIBEXEC is //') + + if [ -n "$temp" ]; then + case $temp in + /*) + libexec="$temp" + ;; + *) + libexec=/usr/$temp + ;; + esac + fi + if [ -n "$getcaps" ]; then [ -n "$DONT_LOAD" ] && DONT_LOAD="$(echo $DONT_LOAD | tr ',' ' ')"