summaryrefslogtreecommitdiffstats
path: root/src/lib/ip
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2013-02-01 00:56:04 +0100
committerJouke Witteveen <j.witteveen@gmail.com>2013-02-01 00:56:04 +0100
commit4a8465a1f308890c7f54eab8c0a7c270fc0246ed (patch)
treeefb6a96b23afb90534f94b16658aef47485408c4 /src/lib/ip
parent30f0608f61775f4de0a0afc645ccf74c479180c3 (diff)
downloadnetctl-4a8465a1f308890c7f54eab8c0a7c270fc0246ed.tar.gz
netctl-4a8465a1f308890c7f54eab8c0a7c270fc0246ed.tar.xz
Remove the default IPv4 netmask
A default netmask makes no sense (except possibly /32). Spotted by: Thomas Bächler <thomas@archlinux.org>
Diffstat (limited to 'src/lib/ip')
-rw-r--r--src/lib/ip1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lib/ip b/src/lib/ip
index 5caa0fc..8723e5b 100644
--- a/src/lib/ip
+++ b/src/lib/ip
@@ -53,7 +53,6 @@ ip_set() {
static)
if [[ $Address ]]; then
for addr in "${Address[@]}"; do
- [[ $addr == */* ]] || addr+="/24"
if ! do_debug ip addr add "$addr" brd + dev "$Interface"; then
report_error "Could not add address '$addr' to interface '$Interface'"
return 1