Differences
This shows you the differences between the selected revision and the current version of the page.
information:dlink_files:102b114:etc:rc.sh 2012/08/18 17:44 | information:dlink_files:102b114:etc:rc.sh 2017/09/06 18:38 current | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Hi. Thank you for posting this post. It helps a good deal of men and women, a prseon of them is me because though I am reading, I'm learning new points that I can apply in everyday life. Great site! I will bookmark your web site and I'll continually search for your update. | + | ==== /etc/rc.sh ==== |
+ | ''-rwxr-xr-x 1 root root 12608 Jan 3 22:34 rc.sh'' | ||
+ | |||
+ | <code bash> | ||
+ | #!/bin/sh | ||
+ | |||
+ | mount -o remount -w %root% / | ||
+ | |||
+ | #+Wilson12202005,removed due to repeatedly soft link | ||
+ | #custom info link | ||
+ | #ln -s /sys/crfs/codepages /etc/samba/codepages | ||
+ | #ln -s /sys/crfs/etc_codepage/codepage /etc/codepage | ||
+ | #ln -s /sys/crfs/web_page /web/web | ||
+ | #ln -s /sys/crfs/upnp/upnpscript /bin/upnpscript | ||
+ | ln -s /sys/crfs/default /default | ||
+ | ln -s /sys/crfs/sbin/chkmtdversion /bin/chkmtdversion | ||
+ | #Wilson12202005+ | ||
+ | |||
+ | /usr/sbin/mtd_check | ||
+ | |||
+ | echo "** Mounting /etc/fstab" | ||
+ | mount -a | ||
+ | umount /proc | ||
+ | umount /sys/crfs | ||
+ | mount -a | ||
+ | |||
+ | #+Wilson12282005 | ||
+ | #eve04062006 ++ | ||
+ | if [ ! -f /sys/mtd1/v2.4 ]; then | ||
+ | echo "** copy default config files" | ||
+ | # rm -f /sys/mtd1/v*.* | ||
+ | # cp -R /default/v2.2 /sys/mtd1/v2.2 | ||
+ | #cp -R /sys/crfs/default/* /sys/mtd1/. | ||
+ | /bin/chkmtdversion | ||
+ | fi | ||
+ | #eve04062006 -- | ||
+ | |||
+ | #+eve03102006 | ||
+ | echo "** check raid Config version" | ||
+ | /sys/crfs/sbin/chkraidversion | ||
+ | |||
+ | echo "** copy mtd1 files" | ||
+ | cp -f /sys/mtd1/hosts /etc/hosts | ||
+ | cp -f /sys/mtd1/rc.init.sh /etc/rc.d/rc.init.sh | ||
+ | cp -f /sys/mtd1/resolv.conf /etc/resolv.conf | ||
+ | cp -f /sys/mtd1/passwd /etc/passwd | ||
+ | cp -f /sys/mtd1/shadow /etc/shadow | ||
+ | cp -f /sys/mtd1/group /etc/group | ||
+ | cp -f /sys/mtd1/sib.conf /web/sib.conf | ||
+ | cp -f /sys/mtd1/sib2.conf /web/sib2.conf | ||
+ | cp -f /sys/mtd1/sib_ap.conf /web/sib_ap.conf | ||
+ | cp -f /sys/mtd1/smbpasswd /etc/samba/smbpasswd | ||
+ | cp -f /sys/mtd1/smb.default /etc/samba/smb.default | ||
+ | cp -f /sys/mtd1/rtc.conf /etc/rtc.conf | ||
+ | cp -f /sys/mtd1/email.conf /etc/email.conf | ||
+ | cp -f /sys/mtd1/log.conf /web/log.conf | ||
+ | cp -f /sys/mtd1/language.conf /web/language.conf | ||
+ | cp -f /sys/mtd1/upnpav.conf /etc/upnpav.conf | ||
+ | cp -f /sys/mtd1/firmwareupdate /tmp/ | ||
+ | cp -f /sys/mtd1/raidtab /etc/raidtab | ||
+ | cp -f /sys/mtd1/raidtab2web /etc/raidtab2web | ||
+ | cp -f /sys/mtd1/ftpaccess /etc/ | ||
+ | cp -f /sys/mtd1/mt-daapd.conf /etc/ | ||
+ | cp -f /sys/mtd1/mt-daapd.playlist /etc/ | ||
+ | cp -f /sys/mtd1/codepage /etc/codepage | ||
+ | cp -f /sys/mtd1/udhcpd.conf /etc/udhcpd.conf | ||
+ | cp -f /sys/mtd1/hd_magic_num /tmp/ | ||
+ | cp -f /sys/mtd1/upnp_serialnum.conf /etc/upnp_serialnum.conf | ||
+ | mv /sys/mtd1/firmwareupdate /tmp/ | ||
+ | mv /sys/mtd1/restore /tmp/ | ||
+ | mv /sys/mtd1/format_ok /tmp/ | ||
+ | mv /sys/mtd1/pls_sync /tmp/ | ||
+ | mv /sys/mtd1/pls_chmod_a2 /tmp/ | ||
+ | mv /sys/mtd1/pls_chmod_b2 /tmp/ | ||
+ | |||
+ | #cp -f /sys/mtd1/server.pem /web/server.pem | ||
+ | #cp -f /sys/mtd1/cakey.pem /web/cakey.pem | ||
+ | #cp -f /sys/mtd1/cacert.pem /web/cacert.pem | ||
+ | #cp -f /sys/mtd1/Certs.info /web/Certs.info | ||
+ | cp -f /sys/mtd1/ftpgroup /etc/ | ||
+ | umount /sys/mtd1 | ||
+ | #Wilson12282005+ | ||
+ | |||
+ | rm -rf /default | ||
+ | mkdir /default | ||
+ | cp -f /sys/crfs/default/* /default/ | ||
+ | mv /tmp/hd_magic_num /default/ | ||
+ | |||
+ | #+Wilson12282005 | ||
+ | #echo "** soft-link modules" | ||
+ | #ln -s /sys/crfs/usb/usb-storage.o /lib/modules/usb-storage.o | ||
+ | #ln -s /sys/crfs/usb/ehci-hcd.o /lib/modules/ehci-hcd.o | ||
+ | #ln -s /sys/crfs/usb/usb-ohci.o /lib/modules/usb-ohci.o | ||
+ | #Wilson12282005+ | ||
+ | |||
+ | #+Wilson12282005 | ||
+ | #custom info link | ||
+ | ln -s /sys/crfs/codepages /etc/samba/codepages | ||
+ | #ln -s /sys/crfs/etc_codepage/codepage /etc/codepage | ||
+ | ln -s /sys/crfs/web_page /web/web | ||
+ | ln -s /sys/crfs/upnp/upnpscript /bin/upnpscript | ||
+ | #Wilson12282005+ | ||
+ | |||
+ | echo "** link lib **" | ||
+ | ln -s /sys/crfs/samba /usr/sbin/samba | ||
+ | ln -s /sys/crfs/LPRng /usr/sbin/LPRng | ||
+ | ln -s /usr/sbin/samba/liblib_p.so.0.0.0 /lib/liblib_p.so.0 | ||
+ | ln -s /usr/sbin/samba/libubiqx_p.so.0.0.0 /lib/libubiqx_p.so.0 | ||
+ | ln -s /usr/sbin/samba/libparam_p.so.0.0.0 /lib/libparam_p.so.0 | ||
+ | ln -s /usr/sbin/samba/libsmb_p.so.0.0.0 /lib/libsmb_p.so.0 | ||
+ | ln -s /usr/sbin/samba/libpassdb_p.so.0.0.0 /lib/libpassdb_p.so.0 | ||
+ | ln -s /usr/sbin/LPRng/liblpr.so.0.0.0 /lib/liblpr.so.0 | ||
+ | ln -s /sys/crfs/lib/libiconv.so.2.2.0 /lib/libiconv.so.2.2.0 | ||
+ | ln -s /lib/libiconv.so.2.2.0 /lib/libiconv.so | ||
+ | ln -s /lib/libiconv.so.2.2.0 /lib/libiconv.so.2 | ||
+ | ln -s /sys/crfs/sbin/libsqlite3.so.0.8.6 /lib/libsqlite3.so.0 | ||
+ | ln -s /sys/crfs/sbin/libsqlite3.so.0.8.6 /lib/libsqlite3.so.0.8.6 | ||
+ | |||
+ | echo "** link web **" | ||
+ | ln -s /sys/crfs/web/webs /web/webs | ||
+ | ln -s /sys/crfs/web/S_DOWN /web/S_DOWN | ||
+ | ln -s /sys/crfs/web/openssl /web/openssl #amy03152006++ | ||
+ | |||
+ | echo "** link /usr/bin **" | ||
+ | ln -s /sys/crfs/samba/smbpasswd /usr/bin/smbpasswd | ||
+ | ln -s /sys/crfs/samba/smb /usr/bin/smb | ||
+ | ln -s /sys/crfs/samba/smbcom /usr/bin/smbcom | ||
+ | ln -s /sys/crfs/samba/smbd /usr/bin/smbd | ||
+ | ln -s /sys/crfs/samba/nmbd /usr/bin/nmbd | ||
+ | ln -s /sys/crfs/samba/smbclient /usr/bin/smbclient | ||
+ | ln -s /sys/crfs/samba/smbclient /bin/smbclient | ||
+ | ln -s /sys/crfs/bin/ftpd /usr/bin/ftpd | ||
+ | ln -s /sys/crfs/bin/wget /usr/bin/wget | ||
+ | ln -s /sys/crfs/bin/wget /bin/wget | ||
+ | ln -s /sys/crfs/bin/at /usr/bin/at | ||
+ | ln -s /sys/crfs/bin/atd /usr/bin/atd | ||
+ | ln -s /sys/crfs/bin/dosfsck /usr/bin/dosfsck | ||
+ | ln -s /sys/crfs/bin/fdisk /usr/bin/fdisk | ||
+ | ln -s /sys/crfs/bin/judge_swap /usr/bin/judge_swap | ||
+ | ln -s /sys/crfs/bin/mkfs.vfat /usr/bin/mkfs.vfat | ||
+ | ln -s /sys/crfs/bin/e2fsck /usr/bin/e2fsck | ||
+ | ln -s /sys/crfs/bin/mke2fs /usr/bin/mke2fs | ||
+ | ln -s /usr/bin/at /usr/bin/atq | ||
+ | ln -s /usr/bin/at /usr/bin/atrm | ||
+ | ln -s /sys/crfs/bin/imgconvert /usr/bin/imgconvert | ||
+ | ln -s /sys/crfs/LPRng/lpd /usr/bin/lpd | ||
+ | ln -s /sys/crfs/bin/quotaon /usr/bin/quotaon | ||
+ | ln -s /usr/bin/quotaon /usr/bin/quotaoff | ||
+ | ln -s /sys/crfs/bin/quotacheck /usr/bin/quotacheck | ||
+ | ln -s /sys/crfs/bin/repquota /usr/bin/repquota | ||
+ | ln -s /sys/crfs/bin/setquota /usr/bin/setquota | ||
+ | |||
+ | echo "** link /usr/sbin **" | ||
+ | ln -s /sys/crfs/sbin/addtbl /usr/sbin/addtbl | ||
+ | ln -s /sys/crfs/sbin/deltbl /usr/sbin/deltbl | ||
+ | ln -s /sys/crfs/sbin/daylight /usr/sbin/daylight | ||
+ | ln -s /sys/crfs/sbin/do_reboot /usr/sbin/do_reboot | ||
+ | ln -s /sys/crfs/sbin/email /usr/sbin/email | ||
+ | ln -s /sys/crfs/sbin/format_ide /usr/sbin/format_ide | ||
+ | ln -s /sys/crfs/sbin/hddinfo /usr/sbin/hddinfo | ||
+ | ln -s /sys/crfs/sbin/HDDStrCmp /usr/sbin/HDDStrCmp | ||
+ | ln -s /sys/crfs/sbin/mfg_search /usr/sbin/mfg_search | ||
+ | ln -s /sys/crfs/sbin/op_server /usr/sbin/op_server | ||
+ | ln -s /sys/crfs/sbin/SetTimeZone /usr/sbin/SetTimeZone | ||
+ | ln -s /sys/crfs/sbin/sftp /usr/sbin/sftp | ||
+ | ln -s /sys/crfs/sbin/mac_read /usr/sbin/mac_read | ||
+ | ln -s /sys/crfs/sbin/mac_write /usr/sbin/mac_write | ||
+ | ln -s /sys/crfs/sbin/raidstart /usr/sbin/raidstart | ||
+ | ln -s /sys/crfs/sbin/raidstop /usr/sbin/raidstop | ||
+ | ln -s /sys/crfs/sbin/rtc /usr/sbin/rtc | ||
+ | ln -s /sys/crfs/sbin/mdadm /usr/sbin/mdadm | ||
+ | ln -s /sys/crfs/sbin/chkbutton /usr/sbin/chkbutton | ||
+ | ln -s /sys/crfs/sbin/prescan /usr/sbin/prescan | ||
+ | ln -s /sys/crfs/sbin/stime /usr/sbin/stime | ||
+ | ln -s /sys/crfs/sbin/sntp /usr/sbin/sntp | ||
+ | ln -s /sys/crfs/sbin/upnpav_sf /usr/sbin/upnpav_sf | ||
+ | ln -s /sys/crfs/sbin/temperature /usr/sbin/temperature | ||
+ | ln -s /sys/crfs/sbin/djpeg /usr/sbin/djpeg | ||
+ | ln -s /sys/crfs/sbin/defragmentdisk /usr/sbin/defragmentdisk | ||
+ | ln -s /sys/crfs/sbin/lsmod /usr/sbin/lsmod | ||
+ | ln -s /sys/crfs/sbin/rmmod /usr/sbin/rmmod | ||
+ | ln -s /sys/crfs/sbin/insmod /usr/sbin/insmod | ||
+ | ln -s /sys/crfs/sbin/fanspeed /usr/sbin/fanspeed | ||
+ | ln -s /sys/crfs/sbin/fancontrol /usr/sbin/fancontrol | ||
+ | ln -s /sys/crfs/sbin/chk_upnpav_path /usr/sbin/chk_upnpav_path | ||
+ | ln -s /sys/crfs/sbin/getdhcp /usr/sbin/getdhcp | ||
+ | ln -s /sys/crfs/sbin/ins_codepage /usr/sbin/ins_codepage | ||
+ | ln -s /sys/crfs/sbin/chg_hostname /usr/sbin/chg_hostname | ||
+ | ln -s /sys/crfs/sbin/hd_verify /usr/sbin/hd_verify | ||
+ | #eve20060516++:iTunes Server | ||
+ | ln -s /sys/crfs/sbin/libgdbm.so.3.0.0 /lib/libgdbm.so.3.0.0 | ||
+ | ln -s /sys/crfs/sbin/libgdbm.so.3.0.0 /lib/libgdbm.so.3 | ||
+ | ln -s /sys/crfs/sbin/libid3tag.so.0.3.0 /lib/libid3tag.so.0.3.0 | ||
+ | ln -s /sys/crfs/sbin/libid3tag.so.0.3.0 /lib/libid3tag.so.0 | ||
+ | ln -s /sys/crfs/sbin/mt-daapd /usr/sbin/mt-daapd | ||
+ | ln -s /sys/crfs/sbin/chk_sysfile /usr/sbin/chk_sysfile | ||
+ | |||
+ | #+Wilson04252006, Raid Table Parser | ||
+ | ln -s /sys/crfs/sbin/raidtab_parser /usr/sbin/raidtab_parser | ||
+ | ln -s /sys/crfs/sbin/raidlevel_parser /usr/sbin/raidlevel_parser | ||
+ | ln -s /sys/crfs/sbin/raidsync_time /usr/sbin/raidsync_time | ||
+ | #Wilson04252006+ | ||
+ | |||
+ | ln -s /sys/crfs/sbin/raidsync /usr/sbin/raidsync #+Wilson05032006 | ||
+ | |||
+ | #+Wilson04282006, Scsi Proc Parser | ||
+ | ln -s /sys/crfs/sbin/scsistop /usr/sbin/scsistop #+Wilson05022006 | ||
+ | ln -s /sys/crfs/sbin/scsistart /usr/sbin/scsistart | ||
+ | ln -s /sys/crfs/sbin/scsiproc_parser /usr/sbin/scsiproc_parser | ||
+ | ln -s /sys/crfs/sbin/fdiskok /usr/sbin/fdiskok | ||
+ | ln -s /sys/crfs/sbin/swapup /usr/sbin/swapup | ||
+ | #Scsi Disk Driver Module | ||
+ | ln -s /sys/crfs/scsi/sd_mod.ko /lib/modules/sd_mod.ko | ||
+ | |||
+ | #Insert Scsi Disk Driver Module | ||
+ | insmod /lib/modules/sd_mod.ko | ||
+ | #Wilson04282006 | ||
+ | |||
+ | echo "** link /usr/local/LPRng **" | ||
+ | ln -s /sys/crfs/LPRng/lpq /usr/local/LPRng/bin/lpq | ||
+ | ln -s /sys/crfs/LPRng/lpr /usr/local/LPRng/bin/lpr | ||
+ | ln -s /sys/crfs/LPRng/lprm /usr/local/LPRng/bin/lprm | ||
+ | ln -s /sys/crfs/LPRng/lpc /usr/local/LPRng/sbin/lpc | ||
+ | |||
+ | #customer information | ||
+ | ln -s /sys/crfs/shared_name /sys/custom/shared_name | ||
+ | ln -s /sys/crfs/default /sys/custom/default | ||
+ | ln -s /sys/crfs/web_page /sys/custom/web_page | ||
+ | ln -s /sys/crfs/codepages /sys/custom/codepages | ||
+ | ln -s /sys/crfs/etc_codepage /sys/custom/etc_codepage | ||
+ | ln -s /sys/crfs/upnp /sys/custom/upnp | ||
+ | ln -s /sys/crfs/default/version.txt /sys/custom/version/version.txt | ||
+ | ln -s /sys/crfs/default/version2.txt /sys/custom/version/version2.txt | ||
+ | |||
+ | rm -f /default/server.pem | ||
+ | rm -f /default/cakey.pem | ||
+ | rm -f /default/cacert.pem | ||
+ | rm -f /default/Certs.info | ||
+ | |||
+ | cp -f /sys/crfs/default/server.pem /web/ | ||
+ | cp -f /sys/crfs/default/cakey.pem /web/ | ||
+ | cp -f /sys/crfs/default/cacert.pem /web/ | ||
+ | cp -f /sys/crfs/default/Certs.info /web/ | ||
+ | |||
+ | rtc -s | ||
+ | echo "<fan script start>" | ||
+ | /sbin/fan.script & | ||
+ | |||
+ | #+Wilson12282005 | ||
+ | #+Wilson07192005 | ||
+ | # for WCN | ||
+ | #mkdir /sys/custom/wcn | ||
+ | #ln -s /sys/crfs/wcn/xmlparser /usr/sbin/xmlparser | ||
+ | #ln -s /sys/crfs/wcn/macaddr.wfc /sys/custom/wcn/macaddr.wfc | ||
+ | #Wilson07192005+ | ||
+ | #Wilson12282005+ | ||
+ | |||
+ | echo "** set loopback interface" | ||
+ | /sbin/ifconfig lo 127.0.0.1 netmask 255.0.0.0 | ||
+ | |||
+ | #+Wilson08022004 | ||
+ | # | ||
+ | # Ethernet Bridge Setup | ||
+ | # | ||
+ | |||
+ | #/usr/sbin/brctl addbr br0 #+Wilson01242005 | ||
+ | #/usr/sbin/brctl addif br0 eth0 #+Wilson01242005 | ||
+ | #Wilson08022004+ | ||
+ | |||
+ | #+Wilson12282005 | ||
+ | #+Wilson01242005 | ||
+ | # | ||
+ | # Enable Bonding Driver | ||
+ | # | ||
+ | # mode 1: active backup, miimonitor=100ms, primary interface=eth0 | ||
+ | #insmod /sys/crfs/bridge/bonding.o mode=1 miimon=100 primary=eth0 #+Wilson05092005 | ||
+ | #/sbin/ifconfig br0 192.168.1.2 netmask 255.255.255.0 | ||
+ | |||
+ | # | ||
+ | # Enslave Ethernet interface eth0 | ||
+ | # | ||
+ | |||
+ | mac_read | ||
+ | #/sbin/ifenslave br0 eth0 | ||
+ | #Wilson12282005+ | ||
+ | |||
+ | echo "** Activate Gigabit Interface" | ||
+ | #/sbin/ifconfig egiga0 172.16.136.71 netmask 255.255.255.0 #+Wilson12202005 | ||
+ | |||
+ | echo 0 > /proc/sys/net/ipv4/ip_forward | ||
+ | #/sbin/ifconfig br0 192.168.1.2 netmask 255.255.255.0 #+Wilson01242005 | ||
+ | |||
+ | if [ ! -e /tmp/wrongdate ]; then | ||
+ | echo "** execute rc.init.sh" | ||
+ | chg_hostname #fish20060817+ | ||
+ | /etc/rc.d/rc.init.sh | ||
+ | |||
+ | #echo 30 > /proc/sys/net/ipv4/tcp_keepalive_time | ||
+ | |||
+ | judge_swap #+Wilson04282005 | ||
+ | hd_verify | ||
+ | |||
+ | #/usr/sbin/chkbutton #-jack20061020 | ||
+ | #/web/webs & #-jack03242006 | ||
+ | #/bin/wireless & | ||
+ | atd | ||
+ | smbcom | ||
+ | smbd -D | ||
+ | nmbd -D | ||
+ | #autoip br0 #+Wilson12282005 | ||
+ | goweb egiga0 /mnt/web_page/goweb.htm | ||
+ | #goweb br0:0 /mnt/web_page/goweb-autoip.htm #+Wilson12282005 | ||
+ | SetTimeZone | ||
+ | stime | ||
+ | #/usr/sbin/ppc_rtc -b | ||
+ | crond | ||
+ | |||
+ | chkbutton #jack20061020+ | ||
+ | |||
+ | /bin/cat /sys/crfs/default/version.txt | ||
+ | |||
+ | #+Wilson12282005 | ||
+ | #echo "** insert USB Host Controller modules" | ||
+ | #insmod /lib/modules/ehci-hcd.o | ||
+ | #insmod /lib/modules/usb-ohci.o | ||
+ | |||
+ | #+Wilson05112005 | ||
+ | #if [ -e /proc/scsi/atp86x ]; then | ||
+ | # insmod /lib/modules/usb-storage.o host_number=1 #IDE HDD exist | ||
+ | #else | ||
+ | # insmod /lib/modules/usb-storage.o host_number=0 #no IDE HDD | ||
+ | #fi | ||
+ | #Wilson05112005+ | ||
+ | #Wilson12282005+ | ||
+ | |||
+ | op_server & | ||
+ | route add -net 224.0.0.0 netmask 255.0.0.0 dev egiga0 | ||
+ | /usr/sbin/mfg_search | ||
+ | /bin/upnpscript | ||
+ | |||
+ | #+Wilson12282005 | ||
+ | echo "** Get MAC Addr" | ||
+ | MACStrStart=39 | ||
+ | MACStrOffset=17 | ||
+ | LANMACStr=$(ifconfig egiga0 | grep HWaddr) | ||
+ | lanmac=`expr substr "$LANMACStr" "$MACStrStart" "$MACStrOffset"` | ||
+ | echo "$lanmac" > /etc/macaddr | ||
+ | #Wilson12282005+ | ||
+ | |||
+ | #+Wilson12282005 | ||
+ | #+Wilson05102005 | ||
+ | #echo "** load wireless driver" | ||
+ | #insmod /sys/crfs/wireless/rt2500.o | ||
+ | |||
+ | # | ||
+ | # Enslave Wireless interface ra0 | ||
+ | # | ||
+ | #Ralink=$(ifconfig ra0 | grep ra0) | ||
+ | #if [ -n "$Ralink" ]; then | ||
+ | # | ||
+ | # Add Wireless interface to Ethernet Bridge | ||
+ | # | ||
+ | #/usr/sbin/brctl addif br0 ra0 #+Wilson01242005 | ||
+ | |||
+ | # | ||
+ | # Enable Ethernet interface | ||
+ | # | ||
+ | #/sbin/ifconfig eth0 0.0.0.0 #+Wilson01242005 | ||
+ | |||
+ | #+Wilson04222004 | ||
+ | # | ||
+ | # Make sure the LAN's Mac Addr == WLAN's Mac Addr | ||
+ | # | ||
+ | #MACStrStart=39 | ||
+ | #MACStrOffset=17 | ||
+ | #LANMACStr=$(ifconfig adm0 | grep HWaddr) | ||
+ | #WLANMACStr=$(ifconfig ra0 | grep HWaddr) | ||
+ | #lanmac=`expr substr "$LANMACStr" "$MACStrStart" "$MACStrOffset"` | ||
+ | #wlanmac=`expr substr "$WLANMACStr" "$MACStrStar#t" "$MACStrOffset"` | ||
+ | |||
+ | #if [ "$lanmac" != "$wlanmac" ]; then | ||
+ | # ifconfig ra0 hw ether "$lanmac" | ||
+ | #fi | ||
+ | |||
+ | #/sbin/ifconfig ra0 0.0.0.0 #+Wilson01242005 | ||
+ | # | ||
+ | # Enslave Wireless interface ra0 | ||
+ | # | ||
+ | #/sbin/ifenslave br0 ra0 #+Wilson01242005, enslave ra0, eth0 | ||
+ | #touch /etc/wlan #+Wilson08202004 | ||
+ | #fi | ||
+ | #Wilson05102005+ | ||
+ | |||
+ | #/bin/wireless | ||
+ | #Wilson12282005+ | ||
+ | chk_sysfile & #+eve010407:check system file | ||
+ | /web/webs & | ||
+ | |||
+ | cp /proc/scsi/scsi /etc #+Wilson04282006, backup scsi file for hotswap | ||
+ | |||
+ | /usr/sbin/chk_fun_plug & | ||
+ | /usr/sbin/chk_upnpav_path & | ||
+ | fancontrol & | ||
+ | |||
+ | #Eve05122006++ | ||
+ | mount -t usbdevfs none /proc/bus/usb | ||
+ | |||
+ | touch /tmp/boot_finished | ||
+ | else | ||
+ | echo "<reboot now>" | ||
+ | reboot | ||
+ | fi | ||
+ | </code> |