Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 273247 Details for
Bug 367145
Power Management Guide outdated for baselayout2
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
pmg_switch_runlevel.sh working with new baselayout
pmg_switch_runlevel.sh (text/plain), 925 bytes, created by
Libor Polčák
on 2011-05-15 09:43:56 UTC
(
hide
)
Description:
pmg_switch_runlevel.sh working with new baselayout
Filename:
MIME Type:
Creator:
Libor Polčák
Created:
2011-05-15 09:43:56 UTC
Size:
925 bytes
patch
obsolete
>#!/bin/bash > ># BEGIN configuration >RUNLEVEL_AC="default" >RUNLEVEL_BATTERY="battery" > >if [ -x /usr/bin/logger ]; then > LOGGER="/usr/bin/logger -s -p daemon.info -t /etc/acpi/actions/pmg_switch_runleve.sh" >else > LOGGER="/bin/echo" >fi > >ON_AC_POWER=/usr/bin/on_ac_power ># END configuration > > >if [ ! -d "/etc/runlevels/${RUNLEVEL_AC}" ] >then > ${LOGGER} "${0}: Runlevel ${RUNLEVEL_AC} does not exist. Aborting." > exit 1 >fi > >if [ ! -d "/etc/runlevels/${RUNLEVEL_BATTERY}" ] >then > ${LOGGER} "${0}: Runlevel ${RUNLEVEL_BATTERY} does not exist. Aborting." > exit 1 >fi > >if ${on_ac_power} >then > if [[ "$(rc-status --runlevel)" != "${RUNLEVEL_AC}" ]] > then > ${LOGGER} "Switching to ${RUNLEVEL_AC} runlevel" > /sbin/rc ${RUNLEVEL_AC} > fi >elif [[ "$(rc-status --runlevel)" != "${RUNLEVEL_BATTERY}" ]] >then > ${LOGGER} "Switching to ${RUNLEVEL_BATTERY} runlevel" > /sbin/rc ${RUNLEVEL_BATTERY} >fi >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 367145
: 273247