|
Question : How do you setup an automation script for modprobe?
|
|
I am trying to setup an automation script to load a wireless driver using the following command: I put the following commands in /etc/modprobe.d/iwp3945
echo install ipw3945 /sbin/modprobe --ignore-install ipw3945 ; \ sleep 0.5 ; /sbin/ipw3945d --quiet >> /etc/modules.d/ipw3945 echo remove ipw3945 /sbin/ipw3945d --kill ; \ /sbin/modprobe -r --ignore-remove ipw3945 >> /etc/modules.d/ipw3945
modprobe returns the following warning: ignoring bad line starting with echo. What is the correct syntax to get this script to work?
|
Answer : How do you setup an automation script for modprobe?
|
|
What else have you got in /etc/modprobe.d? It doesn't look to me like a directory where you should have scripts at all:
08:30:21$ ls -l /etc/modprobe.d total 12 -rw-r--r-- 1 root root 6337 2007-05-19 16:11 blacklist -rw-r--r-- 1 root root 356 2007-05-18 07:16 isapnp
|
|
|