mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-06 18:09:28 +00:00
contrib/template-wifi: split off from Makefile
This commit is contained in:
parent
54612e333f
commit
aeca778284
2 changed files with 13 additions and 5 deletions
11
contrib/template-wifi.sh
Executable file
11
contrib/template-wifi.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
sed \
|
||||
-e '/\/caps-man\//d' \
|
||||
-e '/\/interface\/wireless\//d' \
|
||||
-e 's|%TEMPL%|.wifi|' \
|
||||
-e '/^# NOT \/interface\/wifi\/ #$/,/^# NOT \/interface\/wifi\/ #$/d' \
|
||||
-e '/^# !!/,/^# !!/c # !! Do not edit this file, it is generated from template!' \
|
||||
< "${1}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue