Signed-off-by: Rodrigo Vivi <rodrigo.vivi@openbossa.org>
if [ -x /mnt/initfs/usr/bin/wlan-cal ]; then
chroot /mnt/initfs /usr/bin/wlan-cal
fi
- # Getting up the interface to make the firmware being loaded (stupid, i know)
- ifconfig wlan0 up
else
echo "OOPS: $MODULE not found, the switch is not possible" 1>&2
fi
swap_module
;;
stop)
- ifconfig $IFACE down
rmmod cx3110x
;;
force-reload | restart)
if [ -x /mnt/initfs/usr/bin/wlan-cal ]; then
chroot /mnt/initfs /usr/bin/wlan-cal
fi
- # Getting up the interface to make the firmware being loaded (stupid, i know)
- ifconfig wlan0 up
else
echo "OOPS: $MODULE not found, the switch is not possible" 1>&2
fi
swap_module
;;
stop)
- ifconfig $IFACE down
rmmod cx3110x
;;
force-reload | restart)