]> Cypherpunks.ru repositories - govpn.git/blobdiff - utils/addroute.sh
sed can be safely invoked without -e for simple scripts
[govpn.git] / utils / addroute.sh
index 781505c95d4c123994a00d8ae92da25ed3ae71d9..a8d85cd4226f5f05b6561f8d37d3a9dbbec6d586 100755 (executable)
@@ -23,7 +23,7 @@ tear_down_dev() {
 
 
 do_connect() {
-  local OLDGW=$(ip route show 0/0 | sed -e 's/^default//')
+  local OLDGW=$(ip route show 0/0 | sed 's/^default//')
   ip link set dev $TAPDEV up
   ip addr add $INTERNAL_IP4_ADDRESS dev $TAPDEV
   ip route add $VPNGATEWAY $OLDGW