亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? apmd_proxy

?? 電源管理程序
??
字號(hào):
#!/bin/sh# # apmd_proxy - program dispatcher for APM daemon# Craig Markwardt (craigm@lheamail.gsfc.nasa.gov) 21 May 1999# David Brownell (db@post.harvard.edu) 9 June 1999## This shell script is called by the APM daemon (apmd) when the state# of any power management function has changed.  The exact events that# trigger the calling of apmd_proxy depend on how apmd was configured# at compile time.## Within this script the system administrator should put any commands# or actions which should be performed upon state transitions.## apmd_proxy is called with specific arguments that describe the event# that has occurred.  It is this script's responsibility to query the# hardware or the APM service (via /proc/apm) for more information,# and to take the appropriate action.## For example, apmd will call "apmd_proxy suspend system" just before# the system is scheduled to go into suspend mode.  The administrator# may wish to perform site-specific actions like unloading drivers or# disabling the network interface.  When the system is resumed later,# apmd will call "apmd_proxy resume normal", at which time those actions# should be reversed.## If the kernel APM driver is version 1.10 or higher (use the "apm"# command to find out), apmd_proxy can return an error code for the# suspend and standby events, indicating whether the pending mode# should be rejected.  For example, apmd_proxy may decide if, based on# CPU or network activity or user instructions, a suspend initiated by# the APM BIOS should be rejected.##    !! NOTE !!   This is not the apmd_proxy used on most Debian systems!##   RETURN VALUE:#     0 - nominal return; suspend and standby events are accepted#     1 - reject a suspend or standby (MUST HAVE APM DRIVER 1.10 OR HIGHER)## Here are the calling sequences for apmd_proxy:## apmd_proxy start              - APM daemon has started# apmd_proxy stop               - APM daemon is shutting down# apmd_proxy suspend system     - APM system has requested suspend mode# apmd_proxy suspend critical   - APM system indicates critical suspend (*)# apmd_proxy standby system     - APM system has requested standby mode # apmd_proxy suspend user       - User has requested suspend mode# apmd_proxy standby user       - User has requested standby mode# apmd_proxy resume suspend     - System has resumed from suspend mode# apmd_proxy resume standby     - System has resumed from standby mode# apmd_proxy resume critical    - System has resumed from critical suspend# apmd_proxy change battery     - APM system reported low battery# apmd_proxy change power       - APM system reported AC/battery change# apmd_proxy change time        - APM system reported need for time update (*)# apmd_proxy change capability  - APM system reported config. change (+)## (*) - APM daemon may be modified to call these sequences# (+) - Available if kernel APM driver supports it (driver ver. 1.10 or higher)## SIMPLIFIED CONFIGURATION  ## The operation of this script can be controlled either by setting the# following variables appropriately, or by editing the script itself.## Set UTC to true if your clock is based on UTC time.  This settting# is overridden by any settings in /etc/sysconfig/clock.UTC=false## Set SUSPEND_ON_AC to false if you wish to avoid suspend and standby# events when your machine is connected to AC power.  By default# suspends can occur on either battery or AC power.SUSPEND_ON_AC=true## PCMCIA cards can be more or less amenable to an APM suspend event.# If you have a card that cannot be suspended properly (such as a SCSI# card), then it should be "ejected" before entering suspend mode.# The cards are not physically ejected; rather, the power is turned# off to them via the "cardctl eject" command, and is reactivated upon # resume.PCMCIA_EJECT_ON_SUSPEND=false### DEBUGGING## Uncomment commands under either METHOD 1 or METHOD 2 for debugging# messages to the system log.  Not recommended for general use, since# it may activate your disk more than needed.  The second method will# log all commands and error messages encountered by apmd_proxy.## METHOD 1 - Logs command line arguments of apmd_proxy only# logger apmd_proxy $*    # METHOD 2 - Logs entire run of apmd_proxy to /tmp/apmd_proxy.log# echo '****************' >> /tmp/apmd_proxy.log# echo "$0 $*"            >> /tmp/apmd_proxy.log# date                    >> /tmp/apmd_proxy.log# echo '----------------' >> /tmp/apmd_proxy.log# exec                   2>> /tmp/apmd_proxy.log# set -x## A convenience bash routine is included to show how to query AC power# status.## *******************************************************************power_conserve() {	# Set IDE hard disk spindown time to a short time	# Disabled by default.#	/sbin/hdparm -q -S 18 /dev/hda			# 18 == 1.5 minutes	true;}power_performance() {	# Disable IDE hard disk spindown	# Disabled by default.#	/sbin/hdparm -q -S 0 /dev/hda	true;}# NOTE:  APM BIOS drivers in kernel 2.2 and later have handled thisupdate_clock () {	# update kernel to match hardware clock	if [ -f /etc/sysconfig/clock ]; then	    . /etc/sysconfig/clock	    # old style	    if [ "$CLOCKMODE" = GMT ]; then		UTC=true	    fi	fi	if [ $UTC = false ]; then	    FLAG=""	else	    FLAG="-u"	fi	[ -x /sbin/clock ] && clock -s $FLAG || hwclock -s $FLAG}# Start of main procedure.  Included are examples of some mild power# management profiling, disabled by default.  Timer-based system# suspends and standbys can be rejected if we are on AC power.#case "$1" in  # ----------------------- SUSPEND and STANDBY ----------------------  # Handle customized behavior for APM standby and suspend events  # here.  Depending on your system, you may wish to enable some of  # the example actions that follow.  "suspend"|"standby")	# Activate this segment if you wish to disable normal suspend	# events when you are on AC power.  This segment only works if	# your APM BIOS sends "suspend system" events after an idle	# period.  Also, you must be running a Linux kernel APM	# driver version 1.10 or higher (run "apm" to find out).	#	if [ $SUSPEND_ON_AC = false -a $2 = system ]; then		if on_ac_power >/dev/null; then			exit 1  # Reject (NOTE kernel support must be enabled)		fi	fi	if [ $1 = standby ]; then		exit 0	fi	# Standby events typically do not go past this point, but can	# if you comment out the above lines.	# Activate this segment if you wish to disable PCMCIA services	# upon suspend events.  The PCMCIA driver nominally will	# suspend all cards before reaching this point, but certain	# cards cannot be suspended properly (notably, SCSI cards).	# These cards must be forcefully software-ejected.  If you	# uncomment this code, then be sure to also uncomment the	# corresponding segment under RESUME.  Calling "cardctl	# suspend" is needed for systems whose PCMCIA modules are	# available but not APM-aware.  Calling it more than once is	# not harmful.	#	if [ -x /sbin/cardctl ]; then 		if [ $PCMCIA_EJECT_ON_SUSPEND = true ]; then			/sbin/cardctl eject		else			/sbin/cardctl suspend		fi	fi	# Uncomment this segment if your graphics card does not resume	# in graphics mode properly (ie, in X windows).  This action	# changes the screen to virtual console number 1, which is	# usually a text console.  Upon resume, you will need to	# change back to your X console manually.	#	# if [ -x /usr/bin/chvt ]; then	# 	/usr/bin/chvt 1; sleep 1	# fi	# other common actions:  unload troublesome drivers	# EXAMPLE: OSS sound may not suspend/resume properly	#    - Unload the drivers here and then reload upon resume	#      Path may vary.  Be sure to enable "soundon" below.	#	/usr/local/bin/soundoff	;;  # ------------------------------- RESUME ---------------------------  # Resume ... from standby is a NOP, except the clock update.  "resume")	# Typically the Linux system clock needs to be reset.	update_clock	# Activate this segment if you "ejected" PCMCIA cards above.	# The default operation is to "resume", which is required for	# systems whose PCMCIA modules are not APM-aware.	#	if [ $2 = suspend -a -x /sbin/cardctl ]; then		if [ $PCMCIA_EJECT_ON_SUSPEND = true ]; then			/sbin/cardctl insert		else			/sbin/cardctl resume		fi	fi	# Drives can forget their time-out setting after suspend,	# so we may have to reprogram the drive.        if on_ac_power >/dev/null; then                power_performance        else                power_conserve        fi	# other common actions:  reload troublesome drivers	# EXAMPLE: reload OSS sound drivers.  Path may vary.	#	/usr/local/bin/soundon	;;  # ------------------------------- START ----------------------------  # Called when apmd first starts.  # If we are on battery power, then attempt to "conserve" power.  "start")  	if on_ac_power >/dev/null; then		power_performance	else		power_conserve	fi	;;  # ------------------------------- STOP -----------------------------  # Called when apmd is terminated.  # Default mode, when apmd is off, is to be in "performance" mode.  "stop")	power_performance	;;   # ------------------------ CHANGE in STATUS ------------------------  "change")	case $2 in	    "power")		# switched to/from AC power, added/removed battery, etc		if on_ac_power >/dev/null; then			power_performance		else			power_conserve		fi		;;	    "time")		# normally not called		update_clock		;;	    "battery")		# battery is at "low" level (BIOS defines -- e.g. as 50%)		# can't do much of anything useful		;;	    "capability")		# e.g. added new hardware (not battery!)		;;	esac	;;esacexit 0

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品国产无天堂网2021| 日韩一区二区电影| 亚洲香肠在线观看| 日韩精品一区二区三区在线| 成人一级视频在线观看| 丝袜亚洲精品中文字幕一区| 中文字幕av一区二区三区免费看| 欧美高清视频一二三区 | 不卡的av电影在线观看| 亚洲成a人在线观看| 国产精品理论在线观看| 精品免费日韩av| 欧美日韩国产小视频在线观看| 成人毛片在线观看| 黑人精品欧美一区二区蜜桃| 婷婷开心激情综合| 亚洲欧美另类小说| 国产精品午夜春色av| 国产精品色哟哟网站| 日本一区免费视频| 日韩免费高清av| 欧美日韩国产一区| 色综合亚洲欧洲| 成人h动漫精品| 国产一区二区调教| 看片网站欧美日韩| 日本不卡一二三| 亚洲电影激情视频网站| 亚洲欧美一区二区三区国产精品| 欧美韩国日本一区| 国产欧美一区二区三区网站| 久久综合九色综合久久久精品综合| 亚洲精选一二三| 国产精品久久久99| 国产精品无码永久免费888| 国产亚洲精品aa午夜观看| 欧美精品一区二区精品网| 欧美大度的电影原声| 日韩一级大片在线观看| 日本一区二区免费在线| 色婷婷精品久久二区二区蜜臂av| 国产美女视频91| 国产一区在线观看视频| 国内欧美视频一区二区| 精品一区二区三区在线观看国产 | 91麻豆精品国产91久久久久 | 成人av在线影院| www.亚洲人| 99久久综合狠狠综合久久| 97精品电影院| 欧美在线你懂的| 88在线观看91蜜桃国自产| 欧美二区在线观看| 日韩精品一区二区三区三区免费 | 国产欧美日韩精品在线| 中文字幕日韩欧美一区二区三区| 亚洲欧洲精品天堂一级| 成人综合日日夜夜| 在线电影院国产精品| 欧美视频精品在线| 制服丝袜成人动漫| 日韩欧美一二三| 久久亚洲欧美国产精品乐播| 中文字幕av一区二区三区免费看| 尤物在线观看一区| 日本美女一区二区三区| 国产一区二区三区四区五区入口| 国产福利视频一区二区三区| 一本大道av一区二区在线播放 | 日韩无一区二区| 久久久午夜电影| 中文字幕在线一区免费| 亚洲午夜久久久久久久久久久| 日本不卡视频一二三区| 国产经典欧美精品| 91黄色小视频| 欧美不卡激情三级在线观看| 亚洲欧洲性图库| 奇米精品一区二区三区在线观看一 | 一区二区三区中文字幕电影| 久草这里只有精品视频| av电影一区二区| 欧美一级xxx| 中文字幕一区二区三区在线不卡 | bt欧美亚洲午夜电影天堂| 在线观看亚洲精品| 日韩精品一区二区三区三区免费| 国产精品天美传媒| 日本欧美一区二区三区乱码| 99riav久久精品riav| 日韩一区二区三区四区| 中文字幕日韩欧美一区二区三区| 美脚の诱脚舐め脚责91| 日本高清无吗v一区| 久久综合五月天婷婷伊人| 一区二区三区产品免费精品久久75| 色综合久久99| 久久婷婷国产综合精品青草 | 国产精品996| 欧美精品久久一区| 亚洲欧洲国产日韩| 国产一区二区三区| 欧美电影在线免费观看| 欧美日韩国产首页在线观看| 极品少妇xxxx偷拍精品少妇| 91免费看视频| 久久久久青草大香线综合精品| 亚洲线精品一区二区三区八戒| 国产不卡视频在线观看| 欧美电影免费观看高清完整版在| 亚洲精品高清在线| 成人av在线资源| 国产婷婷色一区二区三区在线| 蜜桃精品视频在线| 91精品国产91久久久久久一区二区| 亚洲日本欧美天堂| 成人av在线电影| 中文字幕精品在线不卡| 国产一区二区三区在线观看精品 | 麻豆91在线播放| 欧美在线|欧美| 亚洲伦理在线精品| 99re6这里只有精品视频在线观看| 久久九九全国免费| 国产麻豆成人精品| 久久伊人蜜桃av一区二区| 欧美色男人天堂| 国产精品色婷婷| 成人蜜臀av电影| 欧美mv日韩mv亚洲| 另类小说综合欧美亚洲| 在线不卡一区二区| 天天影视色香欲综合网老头| 欧美日韩精品一区二区| 午夜免费久久看| 欧美另类videos死尸| 亚洲r级在线视频| 在线观看91av| 日韩1区2区3区| 日韩欧美国产精品一区| 久久国产免费看| 337p日本欧洲亚洲大胆精品| 国产老妇另类xxxxx| 国产午夜精品福利| 99re热视频这里只精品| 亚洲乱码中文字幕| 欧美喷水一区二区| 麻豆freexxxx性91精品| 久久色视频免费观看| 懂色av噜噜一区二区三区av| 中文字幕在线不卡| 在线观看国产91| 欧美96一区二区免费视频| 欧美大片一区二区三区| 国产乱子轮精品视频| 国产精品久久久久久亚洲毛片| 成人美女在线视频| 亚洲午夜电影在线观看| 欧美mv日韩mv| 成人毛片在线观看| 亚洲韩国一区二区三区| 欧美一区二区三区在线观看视频| 国产一区二三区| 亚洲激情校园春色| 日韩午夜电影av| 成人av网站大全| 偷窥少妇高潮呻吟av久久免费| 日韩免费看的电影| 99视频一区二区三区| 亚洲国产另类精品专区| 亚洲精品在线电影| 色偷偷成人一区二区三区91| 日本欧美在线看| 中文字幕视频一区二区三区久| 欧美人妇做爰xxxⅹ性高电影| 国产一区不卡在线| 亚洲中国最大av网站| 精品1区2区在线观看| 在线观看亚洲精品| 欧美r级在线观看| 91啪在线观看| 国内不卡的二区三区中文字幕| 日韩伦理av电影| 欧美成人r级一区二区三区| av不卡在线播放| 激情综合亚洲精品| 亚洲一区二区三区四区五区黄| 久久欧美一区二区| 欧美日韩一区久久| 成人精品一区二区三区四区 | 国产精品一区二区在线观看网站| 一区二区不卡在线视频 午夜欧美不卡在 | 91亚洲男人天堂| 激情综合色播激情啊| 亚洲综合在线免费观看| 国产午夜精品一区二区三区视频| 制服丝袜亚洲色图| 一本大道av伊人久久综合| 国产成人精品一区二区三区网站观看| 亚洲h动漫在线|