aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/template-capsman.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/template-capsman.sh')
-rwxr-xr-xcontrib/template-capsman.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/contrib/template-capsman.sh b/contrib/template-capsman.sh
new file mode 100755
index 00000000..5771b53c
--- /dev/null
+++ b/contrib/template-capsman.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+sed \
+ -e '/\/interface\/wifi\//d' \
+ -e '/\/interface\/wireless\//d' \
+ -e 's|%TEMPL%|.capsman|' \
+ -e '/^# NOT \/caps-man\/ #$/,/^# NOT \/caps-man\/ #$/d' \
+ -e '/^# !!/,/^# !!/c # !! Do not edit this file, it is generated from template!' \
+ < "${1}"