と、クリーンインストールしたら、 電源ボタン長押しで電源が落ちなくなった。
昨日の続き。
ude:/usr/local/bin# cat /proc/buffalo/miconint_en ude:/usr/local/bin#kernelmon を実行しているウィンドウには、
line [micon_interrupts] /usr/local/bin/kernelmon_exec.sh: line 18: syntax error near unexpected token `fi' /usr/local/bin/kernelmon_exec.sh: line 18: `fi'しんたっくすえらー?
if [ -f /etc/melco/info ]; then
#. /etc/melco/info
fi
if 分の中が空なのでダメなのか。if 分まるごとコメントアウトする。
ude:/usr/local/bin# diff -c kernelmon_exec.sh.orig kernelmon_exec.sh
*** kernelmon_exec.sh.orig Tue Aug 14 16:54:53 2007
--- kernelmon_exec.sh Wed Aug 15 09:32:30 2007
***************
*** 3,8 ****
--- 3,10 ----
# called from kernelmon
#
+ echo $1 >> /tmp/kernelmon.log
+
if [ "$1" = "" ]; then
exit 1
fi
***************
*** 11,19 ****
if [ -f /etc/melco/email ]; then
. /etc/melco/email
fi
! if [ -f /etc/melco/info ]; then
! #. /etc/melco/info
! fi
LOGTAG=kernelmon
LOGFACILITY=local0.info
--- 13,21 ----
if [ -f /etc/melco/email ]; then
. /etc/melco/email
fi
! #if [ -f /etc/melco/info ]; then
! # #. /etc/melco/info
! #fi
LOGTAG=kernelmon
LOGFACILITY=local0.info
ude:/usr/local/bin#
今度は、
line [micon_interrupts] /usr/local/bin/kernelmon_exec.sh: line 82: -a: command not found MIntActが延々表示されるようになった。
int=`$MICONAPL -a int_get_switch_status |grep "int=" |sed -e "s/int=//"`
MICONAPL が未定義。直接書く
ude:/usr/local/bin# !diff
diff -c kernelmon_exec.sh.orig kernelmon_exec.sh
*** kernelmon_exec.sh.orig Tue Aug 14 16:54:53 2007
--- kernelmon_exec.sh Wed Aug 15 09:36:30 2007
***************
*** 3,8 ****
--- 3,10 ----
# called from kernelmon
#
+ echo $1 >> /tmp/kernelmon.log
+
if [ "$1" = "" ]; then
exit 1
fi
***************
*** 11,19 ****
if [ -f /etc/melco/email ]; then
. /etc/melco/email
fi
! if [ -f /etc/melco/info ]; then
! #. /etc/melco/info
! fi
LOGTAG=kernelmon
LOGFACILITY=local0.info
--- 13,21 ----
if [ -f /etc/melco/email ]; then
. /etc/melco/email
fi
! #if [ -f /etc/melco/info ]; then
! # #. /etc/melco/info
! #fi
LOGTAG=kernelmon
LOGFACILITY=local0.info
***************
*** 77,83 ****
micon_interrupts)
! int=`$MICONAPL -a int_get_switch_status |grep "int=" |sed -e "s/int=//"`
##echo "miconint = ($int)" >/dev/console
case $int in
power_sw)
--- 79,85 ----
micon_interrupts)
! int=`/usr/local/sbin/miconapl -a int_get_switch_status |grep "int=" |sed -e "s/int=//"`
##echo "miconint = ($int)" >/dev/console
case $int in
power_sw)
ude:/usr/local/bin#
この修正で、ようやく電源ボタンによる電源 OFF ができるようになった。
ude:~# cd /usr/local/sbin/ ude:/usr/local/sbin# ls fancontrol kernelmon kernelmon.orig miconapl mkimage ude:/usr/local/sbin# mv kernelmon.orig kernelmon ude:/usr/local/sbin#
ude:/usr/local/sbin# cd ../bin
ude:/usr/local/bin# vi kernelmon_exec.sh
:
:
ude:/usr/local/bin# diff -c kernelmon_exec.sh.orig kernelmon_exec.sh
*** kernelmon_exec.sh.orig Tue Aug 14 16:54:53 2007
--- kernelmon_exec.sh Wed Aug 15 09:44:55 2007
***************
*** 11,19 ****
if [ -f /etc/melco/email ]; then
. /etc/melco/email
fi
! if [ -f /etc/melco/info ]; then
! #. /etc/melco/info
! fi
LOGTAG=kernelmon
LOGFACILITY=local0.info
--- 11,19 ----
if [ -f /etc/melco/email ]; then
. /etc/melco/email
fi
! #if [ -f /etc/melco/info ]; then
! # #. /etc/melco/info
! #fi
LOGTAG=kernelmon
LOGFACILITY=local0.info
***************
*** 77,83 ****
micon_interrupts)
! int=`$MICONAPL -a int_get_switch_status |grep "int=" |sed -e "s/int=//"`
##echo "miconint = ($int)" >/dev/console
case $int in
power_sw)
--- 77,83 ----
micon_interrupts)
! int=`/usr/local/sbin/miconapl -a int_get_switch_status |grep "int=" |sed -e "s/int=//"`
##echo "miconint = ($int)" >/dev/console
case $int in
power_sw)
ude:/usr/local/bin#
|
楽天市場
Amazon |
|
← LS-GL ハックキット 2.0 電源が落ちない |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ LS-GL ハックキット 2.0 パッケージのアップデート |