Created
September 22, 2010 19:43
-
-
Save smahs/592374 to your computer and use it in GitHub Desktop.
Patch for Mint-FM2 menu sub-system to enable tuxonice support on Arch Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -c /etc/rc.d/mfmrootdaemon /etc/rc.d/mfmrootdaemon.new | |
*** /etc/rc.d/mfmrootdaemon 2010-09-21 20:52:50.000000000 +0200 | |
--- /etc/rc.d/mfmrootdaemon.new 2010-09-22 21:27:34.382440785 +0200 | |
*************** | |
*** 95,101 **** | |
then | |
rm -rf $CIAODIR/* | |
# aplay /usr/share/sounds/mintfb-logout.wav & | |
! pm-suspend | |
fi | |
#hibernate | |
--- 95,107 ---- | |
then | |
rm -rf $CIAODIR/* | |
# aplay /usr/share/sounds/mintfb-logout.wav & | |
! if [ -e /usr/sbin/hibernate] | |
! hibernate -F /etc/hibernate/ususpend-ram.conf | |
! elif [ -e /usr/sbin/pm-suspend] | |
! pm-suspend | |
! else | |
! zenity --error --text="Please install either pm-utils or uswsusp to enable this option." | |
! fi | |
fi | |
#hibernate | |
*************** | |
*** 103,109 **** | |
then | |
rm -rf $CIAODIR/* | |
# aplay /usr/share/sounds/mintfb-logout.wav & | |
! pm-hibernate | |
fi | |
} | |
--- 109,121 ---- | |
then | |
rm -rf $CIAODIR/* | |
# aplay /usr/share/sounds/mintfb-logout.wav & | |
! if [ -e /usr/sbin/hibernate] | |
! hibernate -F /etc/hibernate/tuxonice.conf | |
! elif [ -e /usr/sbin/pm-suspend] | |
! pm-hibernate | |
! else | |
! zenity --error --text="Please install either pm-utils (from repo) or tuxonice (search AUR) to enable this option." | |
! fi | |
fi | |
} | |
Diff finished. Wed Sep 22 21:27:50 2010 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment