~upstart-devel/upstart/upstart-jobs

« back to all changes in this revision

Viewing changes to vivid/lib/systemd/system-sleep/tuxonice

  • Committer: Dimitri John Ledkov
  • Date: 2014-11-19 12:58:41 UTC
  • Revision ID: dimitri.j.ledkov@intel.com-20141119125841-98dr37roy8dvcv3b
auto update

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
[ "$1" != pre ] || case "$2" in hibernate|hybrid-sleep)
 
3
    if cd /sys/power/tuxonice 2>/dev/null; then
 
4
        shift
 
5
        TUXONICE_USERUI_PROGRAM="/usr/lib/tuxonice-userui/tuxoniceui -v63"
 
6
        [ -f /etc/tuxonice.conf ] && . /etc/tuxonice.conf
 
7
        echo "$TUXONICE_USERUI_PROGRAM" >user_interface/program
 
8
    fi ;;
 
9
esac