1 2 3 4 5 6 7
#!/bin/sh dmesg -c >/dev/null 2>&1 kldload /root/df5381/df5381.ko sleep 1 dmesg | awk '/DF5381/{f=1} f' kldunload df5381 echo "EXIT=$?"