mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-06 01:49:28 +00:00
contrib/template-capsman: split off from Makefile
This commit is contained in:
parent
ce37544bae
commit
4935c81bd9
2 changed files with 13 additions and 5 deletions
11
contrib/template-capsman.sh
Executable file
11
contrib/template-capsman.sh
Executable file
|
|
@ -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}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue