#!/bin/sh
/bin/mount -t devpts devpts /dev/pts
/sbin/depmod -a
# Required for USB 2.0
/bin/mount -t sysfs sysfs /sys
/sbin/udevd&
chown root.root /bin/busybox
chmod 4755 /bin/busybox
telnetd &
#load modules
/sbin/modprobe fusivlib_lkm
/sbin/modprobe bmdriver_lkm
/sbin/modprobe timers_lkm
/sbin/modprobe ethdriver_lkm
/sbin/modprobe sysKCode_lkm
/sbin/modprobe pppRelay_lkm
#load Atheros WLAN modules
/sbin/modprobe wlan
/sbin/modprobe ath_hal
/sbin/modprobe ath_rate_atheros
/sbin/modprobe ath_dfs
/sbin/modprobe ath_pci
/sbin/wlanconfig wlan0 create wlandev wifi0 wlanmode ap
iwconfig wlan0 essid "ath_test"
iwpriv wlan0 mode 3
iwconfig wlan0 channel 6
/sbin/modprobe periap_driver_lkm
/sbin/modprobe adiwlan_ap
/sbin/ifconfig wlan0 192.168.5.1 netmask 255.255.255.0 broadcast 192.168.5.255
/sbin/ifconfig eth0 192.168.10.2 netmask 255.255.255.0 broadcast 192.168.10.255
/sbin/ifconfig eth1 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255
echo "1" > /proc/sys/net/ipv4/ip_forward
sysutil createlink
/usr/sbin/mini_httpd &
hostname FusivLinux
/sbin/ifconfig eth1 down
modprobe bmedrv
/sbin/modprobe monif_lkm
ifmon &
restore
