#!/bin/bash # # This file has to go to /etc/rc0.d/ and /etc/rc6.d/ # #This script kill wlan so it does not prevent computer to shutdown (until the driver is fixed in linux source itself). #https://bugs.launchpad.net/ubuntu/+source/linux/+bug/365733 case "$1" in stop) ifconfig wlan0 down ;; *) exit 0 ;; esac exit 0