2 DKMS=`which dkms 2>/dev/null`
4 echo ">>> DKMS: Module add, build, and install "
6 $DKMS add -m rtl8192se -v 2.6.0019.1207.2010
7 $DKMS build -m rtl8192se -v 2.6.0019.1207.2010
8 $DKMS install -m rtl8192se -v 2.6.0019.1207.2010
15 #remove by old name (pkg -4 only. not needed in future version)
16 DKMS=`which dkms 2>/dev/null`
17 line=`$DKMS status -m r8192se_pci`
18 if echo "$line" | grep -E 'added|built|installed'; then
19 version=`echo "$line" | sed "s/r8192se_pci,\([^,]*\)[,:].*/\1/;t;d"`
20 $DKMS remove -m r8192se_pci -v $version --all
31 DKMS=`which dkms 2>/dev/null`
32 echo ">>> DKMS: Module uninstall "
34 line=`$DKMS status -m rtl8192se`
35 if echo "$line" | grep -E 'added|built|installed'; then
36 version=`echo "$line" | sed "s/rtl8192se,\([^,]*\)[,:].*/\1/;t;d"`
37 $DKMS remove -m rtl8192se -v $version --all