config

来自「watchdog source watchdog source」· 代码 · 共 57 行

TXT
57
字号
#!/bin/shset -e. /usr/share/debconf/confmoduledb_capb backupparse_default() {    case `sed -n 's/^run_watchdog=//p' "$@"` in    0)  db_set watchdog/run false;;    1)  db_set watchdog/run true;;    *)  return 1;;    esac}if dpkg --compare-versions "$2" le-nl 5.2.4-4then    # Upgrade quietly from pre-debconf days (<= 5.2.4-4).    if parse_default /etc/init.d/watchdog; then	db_fset watchdog/run seen true    fielif [ -f /etc/default/watchdog ]then    # Load previous value (may have been changed manually).    parse_default /etc/default/watchdog || truefidb_input medium watchdog/module || truedb_go# Use a state machine to allow jumping back.state=1while truedo    case $state in    1)	db_input medium watchdog/run || true	;;    2)	db_get watchdog/run	[ "$RET" = false ] || db_input medium watchdog/restart || true	;;    *)	break	;;    esac    if db_go    then	state=$(($state + 1))    else	state=$(($state - 1))    fidone# Check if the user backed up from the first question.[ $state -gt 0 ] || exit 10

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?