HEX
Server: Apache/2.4.65 (Debian)
System: Linux web6 5.10.0-36-amd64 #1 SMP Debian 5.10.244-1 (2025-09-29) x86_64
User: innocamp (1028)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //var/lib/dpkg/info/watchdog.config
#!/bin/sh
set -e

. /usr/share/debconf/confmodule
db_capb backup

parse_default() {
    case `sed -n 's/^run_watchdog=//p' "$@"` in
    0)  db_set watchdog/run false;;
    1)  db_set watchdog/run true;;
    *)  return 1;;
    esac
    case `sed -n 's/^run_wd_keepalive=//p' "$@"` in
    0)  db_set watchdog/run_keepalive false;;
    1)  db_set watchdog/run_keepalive true;;
    *)  return 1;;
    esac
    db_set watchdog/module `sed -n 's/^watchdog_module="\(.*\)"/\1/p' "$@"`
}

if [ -f /etc/default/watchdog ]
then
    # Load previous value (may have been changed manually).
    parse_default /etc/default/watchdog || true
fi

db_input medium watchdog/module || true
db_go

# Use a state machine to allow jumping back.
state=1
while true
do
    case $state in
    1)
	db_input medium watchdog/run || true
	;;
    2)
	db_get watchdog/run
	[ "$RET" = false ] || db_input medium watchdog/restart || true
	;;
    3)
	db_get watchdog/restart
	[ "$RET" = false ] || db_input medium watchdog/run_keepalive || true
	;;
    *)
	break
	;;
    esac

    if db_go
    then
	state=$(($state + 1))
    else
	state=$(($state - 1))
    fi
done

# Check if the user backed up from the first question.
[ $state -gt 0 ] || exit 10