autorun


autorun.sh

#!/bin/sh
sleep 5
/usr/bin/w2 &
sleep 5
/mnt/sd/autorun2.sh

autorun2.sh

#!/bin/sh

# SYSTEM
rm /lib/libpthread.so.0
ln -s /mnt/sd/SYS/bin/* /bin
ln -s /mnt/sd/SYS/lib/* /lib
ln -s /mnt/sd/SYS/etc/* /etc
ln -s /mnt/sd/SYS/usr/bin/* /usr/bin
ln -s /mnt/sd/SYS/usr/lib /usr
ln -s /mnt/sd/SYS/usr/include /usr
ln -s /mnt/sd/SYS/usr/libexec /usr
ln -s /mnt/sd/SYS/sbin/* /sbin/
echo "tcp 6 TCP" >> /etc/protocols
rm /bin/vi
ln -s /mnt/sd/SYS/busybox /bin/vi

# Perl
rm /usr/bin/perl
ln -s /mnt/sd/SYS/usr/bin/perl /usr/bin
ln -s /mnt/sd/SYS/usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5
ln -s /mnt/sd/SYS/usr/local/lib/perl5/vendor_perl /usr/local/lib/perl5\site_perl

# ntp
rm /usr/sbin/ntpd
ln -s /mnt/sd/SYS/busybox /usr/sbin/ntpd
/usr/sbin/ntpd -qnp 133.243.238.164
/mnt/sd/SYS/usr/bin/synctime.sh > /dev/null 2>&1 &

# cron
ln -s /mnt/sd/SYS/busybox /usr/sbin/crond
ln -s /mnt/sd/SYS/busybox /usr/bin/crontab
mkdir -p /var/spool/cron/crontabs
touch /var/spool/cron/crontabs/root
export TZ=JST-9
/usr/sbin/crond


–ß‚é