summaryrefslogtreecommitdiff
path: root/source/n/crda/get_regdb.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/crda/get_regdb.sh')
-rw-r--r--source/n/crda/get_regdb.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/n/crda/get_regdb.sh b/source/n/crda/get_regdb.sh
new file mode 100644
index 00000000..05a2e93b
--- /dev/null
+++ b/source/n/crda/get_regdb.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+_DATE="$(date +%Y%m%d)"
+
+rm -rf wireless-regdb-git_${_DATE} wireless-regdb-git_${_DATE}.tar.bz2
+
+git clone \
+ git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-regdb.git \
+ wireless-regdb-git_${_DATE}
+
+chown -R root:root wireless-regdb-${_DATE}
+tar cjf wireless-regdb-git_${_DATE}.tar.bz2 wireless-regdb-git_${_DATE}
+rm -rf wireless-regdb-git_${_DATE}
+