repo.or.cz
/
unleashed
/
tickless.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
8322 nl: misleading-indentation
[unleashed/tickless.git]
/
usr
/
src
/
cmd
/
hal
/
tools
/
sunos
/
hal-system-power-shutdown-sunos.sh
blob
311e8475e760491a72dacdc5a4b6f2a0d6e36c06
1
#!/bin/sh
2
#
3
# hal-system-power-shutdown-sunos.sh
4
#
5
# Licensed under the Academic Free License version 2.1
6
#
7
8
unsupported
() {
9
echo
"org.freedesktop.Hal.Device.SystemPowerManagement.NotSupported"
>&
2
10
echo
"No shutdown command found"
>&
2
11
exit
1
12
}
13
14
if
[
-x
"/sbin/init"
] ;
then
15
/
sbin
/
init
5
16
exit
$?
17
else
18
unsupported
19
fi