#!/bin/sh

# Message to kernel log. It can be useful for debug
echo "Resetting Wi-Fi controller..." > /dev/kmsg

/etc/init.d/S50hci0 stop
/etc/init.d/S40wifi stop
sleep 1
/etc/init.d/S40wifi start
/etc/init.d/S50hci0 start
