fwcutter: Import the debian build scripts
[b43-tools.git] / fwcutter / debian / firmware-b43-installer.postrm
diff --git a/fwcutter/debian/firmware-b43-installer.postrm b/fwcutter/debian/firmware-b43-installer.postrm
new file mode 100644 (file)
index 0000000..339d140
--- /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
+
+#DEBHELPER#
+
+exit 0