root@debian:~# cat /etc/rc.local #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. insmod /boot/fat.ko insmod /boot/vfat.ko mkdir -p /var/cache/apt/archives/partial /root/discoverd cd / #./demo.sh date 012618002009 hwclock -w exit 0
fat: exports duplicate symbol fat_add_entries (owned by kernel) insmod: error inserting '/boot/fat.ko': -1 Invalid module formatというエラーが出ている。
root@debian:~# lsmod Module Size Used by root@debian:~#ロードされていない。不要
root@debian:~# ls /var/cache/apt/ root@debian:~#?
root@debian:~# cd /etc/ root@debian:/etc# mv rc.local rc.local.orig root@debian:/etc# cp rc.local.orig rc.local.orig cp: `rc.local.orig' and `rc.local.orig' are the same file root@debian:/etc# cp rc.local.orig rc.local root@debian:/etc# ls -l rc.local* -rwxr-xr-x 1 root root 449 Feb 2 16:45 rc.local -rwxr-xr-x 1 root root 449 Jan 26 18:00 rc.local.orig root@debian:/etc# vi rc.local : : root@debian:/etc# cat !$ cat rc.local #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. #insmod /boot/fat.ko #insmod /boot/vfat.ko mkdir -p /var/cache/apt/archives/partial #/root/discoverd #cd / #./demo.sh #date 012618002009 #hwclock -w exit 0 root@debian:/etc#
|
←(前のページ) リモコン情報受信プログラムのコンパイルと実行 |
当月のハックの記録 SheevaPlug/玄柴(KURO-SHEEVA)をハックしよう トップ |
(次のページ)→ 不要な getty を止める |