標準Linuxの/usr/local/bin/内にある。
スクリプト
~ # cat /usr/local/bin/KeventHandller.sh #!/bin/sh # $1 : Kernel event name . /usr/local/bin/kuro_lib case $1 in lanact) if [ "$3" = "full" ] ; then FULL_HALF="f" else FULL_HALF="h" fi case $2 in 0) LINKSPEED="nolink" ;; 10) LINKSPEED="10${FULL_HALF}" ;; 100) LINKSPEED="100${FULL_HALF}" ;; 1000) LINKSPEED="1000" ;; *) ;; esac . /etc/netinfo [ ! -f /var/lock/networking ] && [ "${my_ipaddress}" = "dhcp" ] && \ [ $2 -ne 0 ] && [ -f /var/tmp/bootcomplete ] && \ /etc/init.d/networking.sh restart & ;; micon_interrupts) INT_DETAIL=`$MICONAPL -a int_get_switch_status |grep "int=" |sed -e "s/int=//"` case ${INT_DETAIL} in power_sw) /usr/local/bin/shutdown.sh normal ;; init_sw_front) /usr/local/bin/InitDisk1.sh ;; *) ;; esac MiconIntEnable ;; *) echo "Unknown(or not supported) event driven." ;; esac ~ #