電源ボタン長押しで shutdown -h now を実行する前に「ぴっ」と鳴れば、 長押しが受け付けられたことが判り、手を離せば良い。
hackkit:/usr/local/bin# diff -c KeventHandller.sh.orig KeventHandller.sh
*** KeventHandller.sh.orig Sat Mar 10 08:32:55 2007
--- KeventHandller.sh Sat Mar 17 00:30:04 2007
***************
*** 6,11 ****
--- 6,12 ----
INT_DETAIL=`/usr/local/sbin/miconapl -a int_get_switch_status ||sed -n -e "s/int=//p"`
case ${INT_DETAIL} in
power_sw)
+ /usr/local/sbin/miconapl -a bz_on button
shutdown -h now
;;
esac
hackkit:/usr/local/bin#
![]() |
玄人志向
楽天市場 |
|
← パーミッションが落とされたファイル(2) |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ ユーザ管理 |