summaryrefslogtreecommitdiff
path: root/packages/apmd/apmd-3.2.2/apmwrapper
blob: 3bc9bece3d98bb25c21b960952c0b0c57d6811d6 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

if ( cat /proc/cpuinfo|grep -i hardware|grep -i SHARP ) && \
   [ ".$@" = ".-s" -o ".$@" = ".--suspend" ]; then
	killall -USR1 apmd || /usr/bin/apm.orig -s
else
	/usr/bin/apm.orig "$@"
fi