fwcutter: Import the debian build scripts
[b43-tools.git] / fwcutter / debian / firmware-b43-installer / DEBIAN / postrm
diff --git a/fwcutter/debian/firmware-b43-installer/DEBIAN/postrm b/fwcutter/debian/firmware-b43-installer/DEBIAN/postrm
new file mode 100755 (executable)
index 0000000..b77be9b
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = purge ] || [ "$1" = remove ]; then
+
+       if [ -d /lib/firmware/b43 ]; then
+               echo "Deleting old extracted firmware..."
+               rm -rf /lib/firmware/b43/*
+       fi
+fi
+
+
+
+exit 0