mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-06 18:09:28 +00:00
11 lines
276 B
Bash
Executable file
11 lines
276 B
Bash
Executable file
#!/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}"
|