summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@xso>2011-09-09 16:14:15 +0200
committertv <tv@xso>2011-09-09 16:14:15 +0200
commita6521f5755d80ca09be88ca2f719fab526a88b43 (patch)
tree0c71816e3dfe561948f45e692220ae41a425fadb
parentee02a8c3dea925f568e58aebeb3e01a52ba21ef8 (diff)
//retiolum/scripts/tinc_setup/tinc-up: use BRE @sed
-rwxr-xr-xretiolum/scripts/tinc_setup/tinc-up6
1 files changed, 3 insertions, 3 deletions
diff --git a/retiolum/scripts/tinc_setup/tinc-up b/retiolum/scripts/tinc_setup/tinc-up
index ae7c68e6..9a557787 100755
--- a/retiolum/scripts/tinc_setup/tinc-up
+++ b/retiolum/scripts/tinc_setup/tinc-up
@@ -4,15 +4,15 @@ dirname="`dirname "$0"`"
conf=$dirname/tinc.conf
-name=`sed -rn 's|^ *Name *= *([^ ]*) *$|\1|p' $conf`
+name=`sed -n 's|^ *Name *= *\([^ ]*\) *$|\1|p' $conf`
host=$dirname/hosts/$name
route4=10.7.7.0/24
-addr4=`sed -rn 's|^ *Subnet *= *(10\.[^ ]*) *$|\1|p' $host`
+addr4=`sed -n 's|^ *Subnet *= *\(10\.[^ ]*\) *$|\1|p' $host`
route6=42::/16
-addr6=`sed -rn 's|^ *Subnet *= *(42:[^ ]*) *$|\1|p' $host`
+addr6=`sed -n 's|^ *Subnet *= *\(42:[^ ]*\) *$|\1|p' $host`
ifconfig $INTERFACE up $addr4
route add -net $route4 dev $INTERFACE