Webmin config for Prism PCI cards [4.743]

To configure your Prism PCI cards from webmin in [4.743] edit your /etc/modules.conf file to include the following
alias wlan0 hostap_pci  
and edit your /etc/rc.d/initnics file to include the following between start and stop

 echo -n ":: Starting $PNAME"
                sleep 1
                rm -f $CONF
                touch $CONF
                grep  alias /etc/modules.conf | grep eth | while read a nic driver; do
                        if [ ${#nic} -gt 0 ] ; then
                                if [ $driver != "uml" ] ; then
                                        ip link set up $nic >/dev/null 2>&1
                                        ip link set down $nic >/dev/null 2>&1
                                fi
                        fi
                done
                /usr/local/bin/setitfhw.pl >/dev/null 2>&1
                rc_status -v
                grep  alias /etc/modules.conf | grep wlan | while read a nic driver; do
                        if [ ${#nic} -gt 0 ] ; then
                                if [ $driver != "uml" ] ; then
                                        ip link set up $nic >/dev/null 2>&1
                                        ip link set down $nic >/dev/null 2>&1
                                fi
                        fi
                done
                /usr/local/bin/setitfhw.pl >/dev/null 2>&1
                rc_status -v
        ;;


You will be able to configure your wireless PCI cards via Webmin   
Parents
  • hmm... hostap normally does not need the modules.conf change, so the initnics can stay as it is. In my testbox the PCMCIA adapter is recognized by the pcmcia init script and I see the card in WebAdmin after bootup without any changes. Can you tell me the output of the PCMCIA initscript *without* the changes you posted?

    ~marcel 
Reply
  • hmm... hostap normally does not need the modules.conf change, so the initnics can stay as it is. In my testbox the PCMCIA adapter is recognized by the pcmcia init script and I see the card in WebAdmin after bootup without any changes. Can you tell me the output of the PCMCIA initscript *without* the changes you posted?

    ~marcel 
Children