#!/bin/sh
#This shell for usb wireless Hotplug .
#Author Zero 07-03-16
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/hddapp/sbin/
#/sbin/insmod /lib/modules/zd1211b.ko
`/NAS/usb_wireless`

sh /etc/init.d/dhcpd.sh restart

touch /etc/hotplug/usb/usb_wir.rmv
RMV_SHELL=/etc/hotplug/usb/usb_wir.rmv
echo "#!/bin/sh" > $RMV_SHELL
echo "ifconfig wlan0 down >/dev/null 2>&1" >> $RMV_SHELL
ln -s $RMV_SHELL $REMOVER  2>/dev/null
chmod a+x $RMV_SHELL $REMOVER


