続いて標準ファームのデーモン起動。
起動するものがたくさんあるので、スクリプトに書く。
sil:/etc/init.d# vi /etc/init.d/buffalodaemon : : sil:/etc/init.d# cat /etc/init.d/buffalodaemon #!/bin/sh case "$1" in start) chroot /usr/local/buffalo mount /proc for prog in httpd.sh pcastd.sh epg.sh clientUtil_servd.sh ltbootd.sh do chroot /usr/local/buffalo etc/init.d/$prog start done ;; stop) for prog in ltbootd.sh clientUtil_servd.sh epg.sh pcastd.sh httpd.sh do chroot /usr/local/buffalo etc/init.d/$prog stop done chroot /usr/local/buffalo umount /proc ;; *) echo "Usage: $0 {start|stop}" exit 1 esac exit 0 sil:/etc/init.d# chmod 755 buffalodaemon sil:/etc/init.d#
sil:/etc/init.d# /etc/init.d/buffalodaemon start start Starting HTTPD services: /usr/local/apache/bin/apachectl start: httpd started killall: chk_mediaserver.sh: no process killed Start services: pcastd scheduler pcastd 0.5.9 start. key='server', value='on' key='media', value='/mnt/disk1/share' Set pcast_mp2000 seting media=global_param.public_root key='usbdisk', value='1' key='limit_media', value='' key='limit_pass', value='' EOF Detect. config '/etc/pcast/pcastd.conf' open. key='server_port', value='8000' key='client_language_code', value='sjis' key='skin_root', value='/etc/pcast/theme/pcast' key='us_skin_root', value='/etc/pcast/theme_us/pcast' key='flag_unknown_extention_file_hide', value='true' key='flag_image_viewer', value='false' key='flag_daemon', value='true' key='flag_debug_log_output', value='false' key='debug_log_filename', value='/mnt/disk1/_share/pcastd_debug.log' EOF Detect. Daemoning.... killall: mt-daapd: no process killed Start services: EPGd iRCommander EPGd : version 1.1.0 0.2.0 Starting clientUtil_server:starting on eth0 Starting services: rarpd tftpd rarpcfgd fwupdated. sil:/etc/init.d# find: /proc/1/task: Permission denied find: /proc/1/fd: Permission denied find: /proc/2/task: Permission denied find: /proc/2/fd: Permission denied find: /proc/3/task: Permission denied find: /proc/3/fd: Permission denied find: /proc/4/task: Permission denied find: /proc/4/fd: Permission denied find: /proc/5/task: Permission denied find: /proc/5/fd: Permission denied find: /proc/11/task: Permission denied find: /proc/11/fd: Permission denied find: /proc/14/task: Permission denied find: /proc/14/fd: Permission denied find: /proc/29/task: Permission denied find: /proc/29/fd: Permission denied find: /proc/30/task: Permission denied find: /proc/30/fd: Permission denied find: /proc/51/task: Permission denied find: /proc/51/fd: Permission denied find: /proc/52/task: Permission denied find: /proc/52/fd: Permission denied find: /proc/54/task: Permission denied find: /proc/54/fd: Permission denied find: /proc/53/task: Permission denied find: /proc/53/fd: Permission denied find: /proc/55/task: Permission denied find: /proc/55/fd: Permission denied find: /proc/56/task: Permission denied find: /proc/56/fd: Permission denied find: /proc/180/task: Permission denied find: /proc/180/fd: Permission denied find: /proc/181/task: Permission denied find: /proc/181/fd: Permission denied find: /proc/194/task: Permission denied find: /proc/194/fd: Permission denied find: /proc/223/task: Permission denied find: /proc/223/fd: Permission denied find: /proc/224/task: Permission denied find: /proc/224/fd: Permission denied find: /proc/419/task: Permission denied find: /proc/419/fd: Permission denied find: /proc/421/task: Permission denied find: /proc/421/fd: Permission denied find: /proc/422/task: Permission denied find: /proc/422/fd: Permission denied find: /proc/569/task: Permission denied find: /proc/569/fd: Permission denied find: /proc/584/task: Permission denied find: /proc/584/fd: Permission denied find: /proc/590/task: Permission denied find: /proc/590/fd: Permission denied find: /proc/596/task: Permission denied find: /proc/596/fd: Permission denied find: /proc/642/task: Permission denied find: /proc/642/fd: Permission denied find: /proc/654/task: Permission denied find: /proc/654/fd: Permission denied find: /proc/673/task: Permission denied find: /proc/673/fd: Permission denied find: /proc/680/task: Permission denied find: /proc/680/fd: Permission denied find: /proc/710/task: Permission denied find: /proc/710/fd: Permission denied find: /proc/711/task: Permission denied find: /proc/711/fd: Permission denied find: /proc/712/task: Permission denied find: /proc/712/fd: Permission denied find: /proc/713/task: Permission denied find: /proc/713/fd: Permission denied find: /proc/732/task: Permission denied find: /proc/732/fd: Permission denied find: /proc/733/task: Permission denied find: /proc/733/fd: Permission denied Start services: mediaserver Not connect at BufPCastDLNAAccessControl.pm line 425. HwCtrlPid = [1059]動いた?
sil:/etc/init.d# cd .. sil:/etc# ln -s ../init.d/buffalodaemon rc0.d/K10buffalodaemon sil:/etc# ln -s ../init.d/buffalodaemon rc6.d/K10buffalodaemon sil:/etc# ln -s ../init.d/buffalodaemon rc2.d/S90buffalodaemon sil:/etc# ls -l */*buffalodaemon* -rwxr-xr-x 1 root root 449 Jul 1 03:38 init.d/buffalodaemon lrwxrwxrwx 1 root root 23 Jul 1 03:42 rc0.d/K10buffalodaemon -> ../init.d/buffalodaemon lrwxrwxrwx 1 root root 23 Jul 1 03:44 rc2.d/S90buffalodaemon -> ../init.d/buffalodaemon lrwxrwxrwx 1 root root 23 Jul 1 03:42 rc6.d/K10buffalodaemon -> ../init.d/buffalodaemon sil:/etc#
設定はこのぐらいか。
|
← 書籍「玄箱PROをハックしよう!」 |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ Re: HS-DHGL でハック de 録!!(3) |