$(tr 'Setup your system')
include tpl/login.sh
login || return
section=$GET_section
if [ "$POST_action" = "save" ]; then
for name in $POST_changed; do
eval "value=\"\$POST_${name}\""
eval "command=\"\$POST_${name}_command\""
test "$value" = "-" && value=""
update_setting $name "$value"
test -n "$command" && $command 2>&1 | weblog
done
test -n "$POST_changed" -a -n "$POST_command" && $POST_command 2>&1 | weblog
elif [ -n "$POST_action" ]; then
$POST_action 2>&1 | weblog
fi
. /etc/rc.config
?>