この設定で、19:00 になれば起動し、 19:15 になればシャットダウンするはず。
BUFFALO INC. LinkStation series LS-GL(IESADA) Starting pid 1457, console /dev/ttyS0: '/etc/init.d/rcDown' --- rcDown --- ===== exec:shutdown_start.sh ===== called shutdown_start /etc/init.d/shutdown_start.sh ===== exec:shutdown_proc.sh ===== Stop logchkd:done. Stop services: crondStop daemonwatch:done. Stop servecies: atalkd afpd killall: papd: no process killed Stop lsprcvd:Stop clientUtil_server:rm: cannot remove `/var/run/clientUtil_server-eth0.pid': No such file or directory Shutting down FTPD services: killall: proftpd: no process killed stop Shutting down HTTPD services: /usr/local/apache/bin/apachectl stop: httpd stopped Shutting down SMB services: Shutting down NMB services: Shutting down WINBIND services: killall: winbindd: no process killed Shutting down PAMSMBD services: killall: pamsmbd: no process killed Deconfiguration network interface: lo eth0 Stop inetd:done. Stop kernelmon:done. Stop errormon:done. Save current configuration files tar: Removing leading `/' from member names tar: Removing leading `/' from member names Stop logchkd:done. /sbin/hotplug [module] ERROR: Module p8022 does not exist in /proc/modules /sbin/hotplug [module] /sbin/hotplug [module] ===== exec:umount_disk.sh ===== killing all servers.. Shutting down SMB services: Shutting down NMB services: Shutting down WINBIND services: killall: winbindd: no process killed Shutting down PAMSMBD services: killall: pamsmbd: no process killed Shutting down FTPD services: killall: proftpd: no process killed Stop servecies: atalkd afpd /sbin/hotplug [module] /sbin/hotplug [module] /sbin/hotplug [module] Can't unregister LS-GL530:Workstation@* Can't unregister LS-GL530:netatalk@* killall: papd: no process killed killing all daemons Stop daemonwatch:done. killall: rsync: no process killed stop Shutting down HTTPD services: /usr/local/apache/bin/apachectl stop: httpd (no pid file) not running killall: sshd: no process killed \n==== unmounting all disks ==== /sbin/hotplug [block] /sbin/hotplug [block] umount2: Invalid argument umount: /mnt/usbdisk1: Illegal seek umount2: Invalid argument umount: /mnt/usbdisk2: not mounted umount: /dev/usbdisk1_1: not found umount: /dev/usbdisk2_1: not found umount: /mnt/ram: device is busy umount: /mnt/ram: device is busy /sbin/hotplug [module] ERROR: Module p8022 does not exist in /proc/modules /sbin/hotplug [module] /sbin/hotplug [module] ===== exec:sendsigs.sh ===== swapoff: /dev/ls_disk1_5: Invalid argument Shutting down kernel logger: Shutting down system logger: umount: /mnt/ram: device is busy umount: /mnt/ram: device is busy warning: can't open /etc/mtab: No such file or directory Starting pid 1679, console /dev/ttyS0: '/bin/umount' warning: can't open /etc/mtab: No such file or directory The system is going down NOW !! Sending SIGTERM to all processes. Sending SIGKILL to all processes. The system is halted. Synchronizing SCSI cache for disk sda: System halted. >miconCntl_PowerOff >miconCntl_ShutdownWait Core Driver (ERROR) 0 0: Edma Error Reg 0x28 Core Driver (ERROR) 0 0: Flush DMA, type=CALLBACK, commands 0 (on EDMA 0)あれ?完全に落ちた
何もおこらない。
設定画面で確認するが、ちゃんと設定できている。
待つもハック、耐えるもハック
BUFFALO INC. LinkStation series LS-GL(IESADA) LS-GL530 login: 75826+1 records in 75826+1 records out ---- rcDown(standbying) ---- ===== shutdown_proc.sh stopping ===== Stop logchkd:done. Stop services: crondStop daemonwatch:done. Stop servecies: atalkd afpd killall: papd: no process killed Stop lsprcvd:Stop clientUtil_server:rm: cannot remove `/var/run/clientUtil_server-eth0.pid': No such file or directory Shutting down FTPD services: killall: proftpd: no process killed stop Shutting down HTTPD services: /usr/local/apache/bin/apachectl stop: httpd stopped Shutting down SMB services: Shutting down NMB services: Shutting down WINBIND services: killall: winbindd: no process killed Shutting down PAMSMBD services: killall: pamsmbd: no process killed Deconfiguration network interface: lo eth0 Stop inetd:done. Stop kernelmon:done. Stop errormon:done. Save current configuration files tar: Removing leading `/' from member names tar: Removing leading `/' from member names Stop logchkd:killall: logchkd: no process killed done. /sbin/hotplug [module] ERROR: Module p8022 does not exist in /proc/modules /sbin/hotplug [module] /sbin/hotplug [module] [Success] ===== umount_disk.sh stopping ===== killing all servers.. Shutting down SMB services: killall: smbd: no process killed Shutting down NMB services: killall: nmbd: no process killed Shutting down WINBIND services: killall: winbindd: no process killed Shutting down PAMSMBD services: killall: pamsmbd: no process killed Shutting down FTPD services: killall: proftpd: no process killed Stop servecies: atalkd afpd /sbin/hotplug [module] /sbin/hotplug [module] /sbin/hotplug [module] Can't unregister LS-GL530:Workstation@* Can't unregister LS-GL530:netatalk@* killall: atalkd: no process killed killall: afpd: no process killed killall: papd: no process killed killing all daemons Stop daemonwatch:killall: daemonwatch: no process killed done. killall: diskmon: no process killed killall: miconmon: no process killed killall: rsync: no process killed stop Shutting down HTTPD services: /usr/local/apache/bin/apachectl stop: httpd (no pid file) not running killall: sshd: no process killed \n==== unmounting all disks ==== /sbin/hotplug [block] /sbin/hotplug [block] umount2: Invalid argument umount: /mnt/usbdisk1: Illegal seek umount2: Invalid argument umount: /mnt/usbdisk2: not mounted umount: /dev/usbdisk1_1: not found umount: /dev/usbdisk2_1: not found umount: /mnt/ram: device is busy umount: /mnt/ram: device is busy /sbin/hotplug [module] ERROR: Module p8022 does not exist in /proc/modules /sbin/hotplug [module] /sbin/hotplug [module] [Success] ===== start_data_array.sh stopping ===== can't find or execute script(start_data_array.sh) [Failed ] ===== sendsigs.sh stopping ===== swapoff: /dev/ls_disk1_5: Invalid argument Shutting down kernel logger: Shutting down system logger: umount: /mnt/ram: device is busy umount: /mnt/ram: device is busy warning: can't open /etc/mtab: No such file or directory [Success] ** /proc is closed. ----- rcDown Finished. ---- RETVAL=1, but anyway go on the resume process. killall: sh: no process killed EXT2-fs warning: checktime reached, running e2fsck is recommended /sbin/hotplug [block] Starting pid 1522, console /dev/ttyS0: '/etc/init.d/rcDown' --- rcDown --- ===== exec:shutdown_start.sh ===== put nologin create ram-rootfs use /boot/initrd.buffalo down all processes restart init(1) with no respawn in inittab(5) kills the survived processes remove /etc/nologin unmount some file-systems. and turn off swaps mount new rootfs copy the PC-list and inittab(5) into new rootfs ** CHANGE from LOG_ERR to LOG_INFO. open /etc/pwrmgr/standby.df failed: No such file or directory ** CHANGE from LOG_ERR to LOG_INFO. open /etc/pwrmgr/standby.mount failed: No such file or directory ** CHANGE from LOG_ERR to LOG_INFO. open /etc/pwrmgr/standby.config failed: No such file or directory change rootfs restart new rootfs grep: /proc/buffalo/firmware: No such file or directory grep: /proc/buffalo/firmware: No such file or directory grep: /proc/buffalo/firmware: No such file or directory grep: /proc/buffalo/firmware: No such file or directory called shutdown_start /etc/init.d/shutdown_start.sh ===== exec:shutdown_proc.sh ===== Stop daemonwatch:killall: daemonwatch: no process killed done. grep: /proc/buffalo/firmware: No such file or directory grep: /proc/buffalo/firmware: No such file or directory grep: /proc/buffalo/firmware: No such file or directory grep: /proc/buffalo/firmware: No such file or directory Stop clientUtil_server:Shutting down FTPD services: killall: proftpd: no process killed killall: diskmon: no process killed Stop kernelmon:killall: kernelmon: no process killed killall: cat: no process killed done. err: argCmd: invalid command. (usb_set_power) ===== exec:umount_disk.sh ===== grep: /proc/buffalo/firmware: No such file or directory grep: /proc/buffalo/firmware: No such file or directory grep: /proc/buffalo/firmware: No such file or directory grep: /proc/buffalo/firmware: No such file or directory killing all servers.. /etc/init.d/umount_disk.sh: line 336: /etc/init.d/smb.sh: No such file or directory Shutting down FTPD services: killall: proftpd: no process killed /etc/init.d/umount_disk.sh: line 338: /etc/init.d/atalk.sh: No such file or directory killing all daemons Stop daemonwatch:killall: daemonwatch: no process killed done. killall: diskmon: no process killed err: argCmd: invalid command. (usb_set_power) killall: rsync: no process killed Stop a service: httpd killall: httpd: no process killed killall: sshd: no process killed \n==== unmounting all disks ==== umount2: No such file or directory umount: /boot: Illegal seek umount2: No such file or directory umount: /mnt/disk1/: Illegal seek umount2: No such file or directory umount: /mnt/usbdisk1: Illegal seek umount2: No such file or directory umount: /mnt/usbdisk2: not found umount: /dev/usbdisk1_1: not found umount: /dev/usbdisk2_1: not found swapoff: /dev/ls_disk1_5: Invalid argument umount: /proc/bus/usb: not found umount: /dev/ram1: not mounted /etc/init.d/umount_disk.sh: line 11: rmmod: command not found /etc/init.d/umount_disk.sh: line 12: rmmod: command not found /etc/init.d/umount_disk.sh: line 13: rmmod: command not found /etc/init.d/umount_disk.sh: line 14: rmmod: command not found ===== exec:sendsigs.sh ===== grep: /proc/buffalo/firmware: No such file or directory grep: /proc/buffalo/firmware: No such file or directory grep: /proc/buffalo/firmware: No such file or directory grep: /proc/buffalo/firmware: No such file or directory swapoff: /dev/ls_disk1_5: Invalid argument Shutting down kernel logger: killall: klogd: no process killed Shutting down system logger: killall: syslogd: no process killed umount: /mnt/ram: not found umount: /sys: not mounted umount: /proc: not mounted Starting pid 1631, console /dev/ttyS0: '/bin/umount' The system is going down NOW !! Sending SIGTERM to all processes. Sending SIGKILL to all processes. init started: BusyBox v1.1.1 (2008.03.07-05:17+0000) multi-call binary Starting pid 1636, console /dev/ttyS0: '/bin/umount' Starting pid 1639, console /dev/ttyS0: '/bin/umount' Starting pid 1643, console /dev/ttyS0: '/bin/mount' EXT2-fs warning: checktime reached, running e2fsck is recommended Starting pid 1646, console /dev/ttyS0: '/etc/init.d/standby.rcS' --- rcStart (initrd standby mode) --- ===== exec:create_devlink.sh ===== /etc/init.d/create_devlink.sh: line 675: /var/tmp/devlink: No such file or directory /etc/init.d/create_devlink.sh: line 675: /var/tmp/devlink: No such file or directory ===== exec:sethostname.sh ===== configure files from Buffalo parameters. ===== exec:restore_config.sh ===== mount: mount point /boot does not exist Update configuration files ** fail. not fount initfile.tar.gz ===== exec:networking.sh ===== cp: unable to open `/var/tmp/dhcpcstate': No such file or directory create network files.. IP=[dhcp], netmask=[], dgw=[], dns1=[], dns2=[] /etc/init.d/networking.sh: line 36: /var/tmp/dhcpcstate: No such file or directory killall: dhcpcd: no process killed route: SIOC[ADD|DEL]RT: No such process Configuration network interface: lo eth0 /etc/init.d/networking.sh: line 125: /var/tmp/dhcpcstate: No such file or directory requesting DHCP tout=30[s] networking.sh: dhcp requesting... DontDownIface alwaysFork eth0: link down eth0: link up<5>, full duplex<5>, speed 1 Gbps<5> sendto: count 6 sync 1 sendto: count 5 sync 0 sendto: count 6 sync 0 ** dhcp fail dhcpcd.exe: interface eth0 has been configured with new IP=192.168.2.42 GATEWAY=192.168.2.1 /etc/dhcpc/dhcpcd.exe: line 64: /var/tmp/dhcpcstate: No such file or directory ** networking.sh dhcp fin. configure files from Buffalo parameters. ===== exec:create_usblink.sh ===== ===== exec:closeSysMd.sh ===== /etc/init.d/standby.rcS: line 9: /etc/init.d/closeSysMd.sh: No such file or directory ===== exec:miconmon.sh ===== Core Driver (ERROR) 0 0: Edma Error Reg 0xa8 Core Driver (ERROR) 0 0: Flush DMA, type=CALLBACK, commands 0 (on EDMA 0) err: argCmd: invalid command. (usb_set_power) ===== exec:kernelmon.sh ===== Starting kernelmon:===== exec:clientUtil_servd.sh ===== Starting clientUtil_server:starting on eth0 touch: /var/run/active_clientUtil_server: No such file or directory ===== exec:cron.sh ===== Start services: crondcrond[1821]: crond 2.3.2 dillon, started, log level 8 ===== exec:httpd.sh ===== Start a service: httpd ===== exec:backupmon ===== Start service: backupmon ===== exec:powersw.sh ===== Start service: powerswmon Starting pid 1834, console /dev/ttyS0: '/sbin/getty' LS-GL-EM530 login: DHCPCSTATE=予想通り、EM で起動してきた。
各スクリプトを読んでみないと分からないな。
sh-2.05b$ ps PID Uid VmSize Stat Command 1 root 556 S init 2 root SWN [ksoftirqd/0] 3 root SW< [events/0] 4 root SW< [khelper] 5 root SW< [kthread] 11 root SW< [kblockd/0] 14 root SW< [khubd] 29 root SW [crypto] 30 root SW [crypto_ret] 51 root SW [pdflush] 52 root SW [pdflush] 54 root SW< [aio/0] 55 root SW< [xfslogd/0] 56 root SW< [xfsdatad/0] 180 root SW< [scsi_eh_0] 181 root SW< [scsi_eh_1] 53 root SW [kswapd0] 195 root SW [mtdblockd] 1734 root 200 S /sbin/dhcpcd -L /etc/dhcpc -h LS-GL-EM530 -t 15 -x -y 1785 root 952 S /bin/sh /usr/local/sbin/kernelmon 1815 root 268 S /usr/local/sbin/clientUtil_server -i eth0 1821 root 736 S /usr/sbin/crond 1826 root 284 S /usr/sbin/httpd -h /www 1828 root 1076 S /bin/sh /usr/local/bin/backup_control.sh 1830 root 948 S /bin/sh /usr/local/sbin/powerswmon 1834 admin 1516 S -sh 1880 root 508 S cat /proc/buffalo/kernevnt 8418 root 412 S sleep 60 8757 admin 796 R ps sh-2.05b$ df Filesystem 1k-blocks Used Available Use% Mounted on /dev/ram0 13303 11871 1432 89% / sh-2.05b$ ps PID Uid VmSize Stat Command 1 root 556 S init 2 root SWN [ksoftirqd/0] 3 root SW< [events/0] 4 root SW< [khelper] 5 root SW< [kthread] 11 root SW< [kblockd/0] 14 root SW< [khubd] 29 root SW [crypto] 30 root SW [crypto_ret] 51 root SW [pdflush] 52 root SW [pdflush] 54 root SW< [aio/0] 55 root SW< [xfslogd/0] 56 root SW< [xfsdatad/0] 180 root SW< [scsi_eh_0] 181 root SW< [scsi_eh_1] 53 root SW [kswapd0] 195 root SW [mtdblockd] 1734 root 200 S /sbin/dhcpcd -L /etc/dhcpc -h LS-GL-EM530 -t 15 -x -y 1785 root 952 S /bin/sh /usr/local/sbin/kernelmon 1815 root 268 S /usr/local/sbin/clientUtil_server -i eth0 1821 root 736 S /usr/sbin/crond 1826 root 284 S /usr/sbin/httpd -h /www 1828 root 1076 S /bin/sh /usr/local/bin/backup_control.sh 1830 root 948 S /bin/sh /usr/local/sbin/powerswmon 1834 admin 1516 S -sh 1880 root 508 S cat /proc/buffalo/kernevnt 19054 root 412 S sleep 60 19669 root 396 S /usr/local/sbin/miconapl -a int_get_switch_status 19670 root 504 S grep power_sw 19671 admin 796 R ps sh-2.05b$ cat /usr/local/sbin/powerswmon #!/bin/sh while [ true ] do /usr/local/sbin/miconapl -a int_get_switch_status | grep "power_sw" if [ $? -eq 0 ] then # echo "Power Switch pushed" /usr/local/sbin/PowerSave.sh resume exit 0 fi done sh-2.05b$ガンガンに CPU 使いまくって電源 SW を監視している?
select() 使えればいいのに、、、
LS-GL-EM530 login: eth0: link down Core Driver (ERROR) 0 0: Edma Error Reg 0x10 Core Driver (ERROR) 0 0: Edma Error Reg 0x28 Core Driver (ERROR) 0 0: Unrecoverable HW error detected. Core Driver (ERROR) 0 0: eDevDisUnrecoverableHW error detected. Core Driver (ERROR) SStatus 0x00000123: Core Driver (ERROR) SControl 0x00000300: Core Driver (ERROR) SError 0x00000000: Core Driver (ERROR) IF Ctrl 0x00000000: TXPort 0x0 Core Driver (ERROR) IF status 0x00404000: RXFIS 0x0 RXPort 0x0 Linux IAL (ERROR) [0 0] sata unrecoverable error occured, restart channel Core Driver (FATAL_ERROR) 0 0: mvSataChannelHardReset Failed, channel data structure not allocated eth0: link up<5>, full duplex<5>, speed 1 Gbps<5> ** BUFFALO Disable Command Queuing Function [0 0] ** Linux IAL (ERROR) : retry command host=0, bus=0 SCpnt = c1427420 XFS mounting filesystem sda2 The system is going down NOW !! Sending SIGTERM to all processes. Sending SIGKILL to all processes. init started: BusyBox v1.1.1 (2008.03.07-05:17+0000) multi-call binary Starting pid 21317, console /dev/ttyS0: '/etc/init.d/rcS' --- rcStart (hddroot) --- mkdir: Cannot create directory `/sys': File exists Thu Apr 9 01:25:07 JST 2009 ** step1 ** ===== exec:checkroot.sh ===== mount: /dev/pts already mounted or /dev/pts busy mount: according to mtab, devpts is already mounted on /dev/pts mkdir: Cannot create directory `/var/lock': File exists ln: /var/spool/cron/cron: File exists rm: /var/lock/perfmon: is a directory rm: /var/lock/printing: is a directory rm: /var/lock/subsys: is a directory Adding 136512k swap on /dev/ls_disk1_5. Priority:-2 extents:1 across:136512k ===== exec:create_devlink.sh ===== ===== exec:procps.sh ===== ===== exec:devpts.sh ===== ===== exec:sethostname.sh ===== configure files from Buffalo parameters. ===== exec:restore_config.sh ===== kjournald starting. Commit interval 5 seconds EXT3 FS on sda1, internal journal EXT3-fs: mounted filesystem with ordered data mode. /sbin/hotplug [block] Update configuration files Restore previous configuration files /etc/init.d/restore_config.sh: line 398: [: missing `]' ===== exec:exp_firm_nvram.sh ===== not expansion firmware ** step2 ** ===== exec:networking.sh ===== create network files.. IP=[dhcp], netmask=[], dgw=[], dns1=[], dns2=[] killall: dhcpcd: no process killed route: SIOC[ADD|DEL]RT: No such process Configuration network interface: lo eth0 requesting DHCP tout=30[s] networking.sh: dhcp requesting... DontDownIface alwaysFork sendto: count 6 sync 0 dhcpcd.exe: interface eth0 has been configured with old IP=192.168.2.42 GATEWAY=192.168.2.1 ** networking.sh dhcp fin. configure files from Buffalo parameters. ===== exec:syslog.sh ===== Starting system logger: optarg:syslog LoadConfFileString:key=[local_auth] not found in /etc/melco/info. load_info ItemValue = off LoadConfFileString:key=[ad_dns] not found in /etc/melco/info. LoadConfFileOnOff:key=[info_visible] not found in /etc/melco/info. Starting kernel logger: ===== exec:inetd.sh ===== Starting inetd:===== exec:kernelmon.sh ===== Starting kernelmon:===== exec:miconmon.sh ===== err: argCmd: invalid command. (usb_set_power) miconmon 1.00b3 started (Builddate Mar 7 2008 14:23:24) ===== exec:mount_share.sh ===== /etc/init.d/mount_share.sh: line 482: [: -eq: unary operator expected XFS mounting filesystem sda6 /sbin/hotplug [block] share LS-GL ===== exec:diskmon.sh ===== diskmon ver.1.01 f_type=0x58465342 total_size=319080640512 free_byes=318767423488 ===== exec:errormon.sh ===== Starting errormon:errormon ver.1.00b5(BuildDate Mar 7 2008 14:23:26) Started ===== exec:hotplug.sh ===== updating DHCP lease info: eth0 DHCPCSTATE=up ls: /proc/scsi/usb-storage/: No such file or directory ===== exec:ups ===== ** step3 ** ===== exec:recover_shareinfo.sh ===== find: /mnt/array1: No such file or directory find: /mnt/array2: No such file or directory ** share disk1 ** LS-GL disk1 find: /mnt/disk2: No such file or directory find: /mnt/disk3: No such file or directory find: /mnt/disk4: No such file or directory ===== exec:micon_setup.sh ===== ===== exec:atalk.sh ===== Starting AppleTalk services: configure atalkd atalk_name=LS-GL530 optarg:atalk LoadConfFileString:key=[local_auth] not found in /etc/melco/info. load_info ItemValue = off LoadConfFileString:key=[ad_dns] not found in /etc/melco/info. LoadConfFileOnOff:key=[info_visible] not found in /etc/melco/info. file:/etc/atalk/AppleVolumes.default file:/etc/pam.d/netatalk file:/etc/atalk/afpd.conf (backgrounded) ===== exec:ftpd.sh ===== ftp is OFF ===== exec:httpd.sh ===== start Starting HTTPD services: /sbin/hotplug [module] /sbin/hotplug [module] /sbin/hotplug [module] /usr/local/apache/bin/apachectl start: httpd started ===== exec:smb.sh ===== configure samba optarg:samba LoadConfFileString:key=[local_auth] not found in /etc/melco/info. load_info ItemValue = off LoadConfFileString:key=[ad_dns] not found in /etc/melco/info. LoadConfFileOnOff:key=[info_visible] not found in /etc/melco/info. LoadConfFileString:key=[msdfs_function] not found in /etc/melco/msdfs. LoadConfFileString:key=[msdfs_root_as_link] not found in /etc/melco/msdfs. LoadConfFileString:key=[msdfs_root_name] not found in /etc/melco/msdfs. LoadConfFileString:key=[msdfs_root_path] not found in /etc/melco/msdfs. LoadConfFileString:key=[msdfs_link1_name] not found in /etc/melco/msdfs. Can't Open : /etc/melco/offlinefile file:/etc/samba/smb.conf >IconvCodeCharset CodePage=0,charset=CP932 file:/etc/pam_smb.conf Starting SMB services: Starting NMB services: ===== exec:clientUtil_servd.sh ===== Starting clientUtil_server:starting on eth0 ===== exec:lsprcvd.sh ===== Starting lsprcvd:===== exec:daemonwatch.sh ===== Starting daemonwatch:daemonwatch Ver.1.01 watch list file : /etc/daemonwatch.list ===== exec:cron.sh ===== Start services: crond===== exec:logchkd.sh ===== Starting logchkd:logchkd ver.1.12(May 2 2008) started ===== exec:checkconfig.sh ===== ===== exec:init_sem.sh ===== ===== exec:bootcomplete.sh ===== /etc/init.d/bootcomplete.sh: line 44: flushqueue: command not found Starting pid 21925, console /dev/ttyS0: '/sbin/getty' BUFFALO INC. LinkStation series LS-GL(IESADA) LS-GL530 login:今度も U-Boot まで落ちずに起動してきた。
動的解析は完了。次は静的解析
|
← 聴く日経有料化 |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ スリープ(2) |