?? preinst
字號:
#!/bin/sh## This is the preinst script for the Debian GNU/Linux apmd package## Written by Dirk Eddelbuettel <edd@debian.org> #DEBHELPER#set -ecase "$1" in install) ;; upgrade) # Stop a running apmd from an older version if [ -f /usr/sbin/apmd ] then start-stop-daemon --stop --quiet --oknodo \ --pidfile /var/run/apmd.pid --exec /usr/sbin/apmd fi # Handle bug #4489: Old versions of apmd erroneously killed kerneld # We test for these versions numbers, given by dpkg as $2, using an # expr(1) match, and if the 5 chars are matched, restart the kerneld if [ `expr match "$2" '2\.[124]-[01]$'` -eq 5 ] then /etc/init.d/kerneld start >/dev/null fi ;; abort-upgrade) ;; *) echo "preinst called with unknown argument \`$1'" >&2 exit 0 ;;esac exit 0
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -