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