#!/bin/sh . /usr/lib/libmodcgi.sh auto_chk=''; man_chk=''; log_sys=''; log_int=''; cgi_auto=''; cgi_man=''; log_auto=''; log_man=''; boot_flash=''; boot_usb=''; boot_freetz=''; boot_debug='' if [ -r /var/tmp/nhipt.par ]; then variable=$(cat /var/tmp/nhipt.par) for var1 in $variable; do export NHIPT_$var1 done fi export cb$NHIPT_DELAY=' selected' export dsld$NHIPT_DSLDOFF=' checked' if [ "$NHIPT_LOGTARGET" = "syslog" ]; then log_off=' disabled'; log_dr=' disabled'; log_sys=' checked'; else log_off=''; log_int=' checked'; fi if [ -n "$(ps | grep -v grep | grep iptlogger)" ]; then log_auto=' checked'; else log_man=' checked'; fi if [ -n "$(ps | grep -v grep | grep nhipd.pid)" ]; then cgi_auto=' checked'; cgi_dr=' disabled'; else cgi_man=' checked'; cgi_offline=' disabled'; fi if [ "$NHIPT_BOOT" = "flash" ]; then boot_flash=' checked'; boot_dr=' disabled'; else boot_usb=' checked'; fi if [ "$NHIPT_BOOTSTRAP" = "freetz" ]; then boot_freetz=' checked'; else boot_debug=' checked'; fi if [ "$NHIPT_SERVERIP" = "" ]; then NHIPT_SERVERIP=$(ifconfig | grep -v lan:0 | grep -A 2 lan | awk -F'[ :]+' '/inet addr/{print $4}'); fi if [ "$NHIPT_ADMINIP" = "" ]; then NHIPT_ADMINIP=$REMOTE_ADDR; fi sec_begin 'NHIPT interface' cat << EOF
WEB INTERFACE SETTINGS | ||
---|---|---|
Status : | running | stopped |
Admin IP : | ||
Server IP : | ||
Server port : | ||
Server root : | ||
Backup directory : | ||
LOG DEAMON SETTINGS | ||
Use deamon : | syslog | internal |
Status : | running | stopped |
Log directory : | ||
BOOT PROCEDURE SETTINGS | ||
Boot from : | flash | usb |
Bootstrap : | freetz | debug.cfg |
Boot directory : | ||
Boot delay : | ||
Stop dsld while waiting : | off | on |