Changeset 14849


Ignore:
Timestamp:
Mar 22, 2012, 12:40:00 AM (14 years ago)
Author:
capt_bluebaer
Message:

[ipk] wireless: installation fix

Location:
ipk/source.sh4/swapnetwork_wlan_400/CONTROL
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ipk/source.sh4/swapnetwork_wlan_400/CONTROL/postinst

    r14810 r14849  
    44echo "successfully installed"
    55
    6 if [ -z `grep wlan /var/etc/autostart/start-config` ]; then
    7         echo "wlan=y" >> /var/etc/autostart/start-config
    8         echo "start-config updated"
    9 fi
     6[ -z "`grep wlan= /var/etc/autostart/start-config`" ] && echo "wlan=y" >> /var/etc/autostart/start-config
     7sed -e 's/wlan=.*/wlan=y/' /var/etc/autostart/start-config > /tmp/start-config
     8mv /tmp/start-config /var/etc/autostart/start-config
     9echo "start-config updated"
     10echo
    1011
    1112echo "syncing disk"
  • ipk/source.sh4/swapnetwork_wlan_400/CONTROL/postrm

    r12385 r14849  
    44echo "successfully removed"
    55
    6 MODS="funcemu.ko rt73.ko rt2870sta.ko rt3070sta.ko zd1211.ko zd1211b.ko"
    7 for i in $MODS; do
    8    mv -f $FILE $FILE.old
    9    sed -e "/^$i/d" $FILE.old > $FILE
    10    rm /var/lib/modules/$i
    11 done
    12 rm $FILE.old
    13 echo "modules blacklist updated and symlinks removed"
     6sed -e 's/wlan=.*/wlan=n/' /var/etc/autostart/start-config > /tmp/start-config
     7mv /tmp/start-config /var/etc/autostart/start-config
     8echo "start-config updated"
     9echo
    1410
    1511echo "syncing disk"
Note: See TracChangeset for help on using the changeset viewer.