Hi
 
Can someone point me in the right direction here please?
 
I'm trying to write a simple script to remove one wireless module(if it is present)and install another.  If the module is not present then I need the existing module(iwlwifi) deleted.
 
I can't get this to work however:
 
#! /bin/bash
 
if [ -e $r8712u ]; then
   rmmod r8712u;
   insmod /lib/modules/3.13.3/kernel/drivers/net/wireless/iwlwifi/iwlwifi.ko;
   insmod /lib/modules/3.13.3/kernel/drivers/net/wireless/iwlwifi/dvm/iwldvm.ko;
   echo "Module r8712u is removed and iwlwifi installed."
   else
   rmmod iwldvm;
   rmmod iwlwifi;
   echo "Module iwlwifi is removed."
   fi
 
thanks
 
Cliff
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to