aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/dhclient.sh3
-rw-r--r--net/dhcpcd.sh1
-rw-r--r--net/macchanger.sh6
-rw-r--r--net/macnet.sh1
-rw-r--r--net/ssidnet.sh1
-rw-r--r--net/system.sh4
-rw-r--r--net/wpa_supplicant.sh1
7 files changed, 4 insertions, 13 deletions
diff --git a/net/dhclient.sh b/net/dhclient.sh
index a59fb3bc..ef689337 100644
--- a/net/dhclient.sh
+++ b/net/dhclient.sh
@@ -1,4 +1,3 @@
-# Copyright 2004-2007 Gentoo Foundation
# Copyright 2007 Roy Marples
# All rights reserved
@@ -36,10 +35,10 @@ dhclient_start() {
local sendhost=true dconf=
# Get our options
+ # These options only work in Gentoo, and maybe RedHat
eval opts=\$dhcp_${IFVAR}
[ -z "${opts}" ] && opts=${dhcp}
- # Map some generic options to dhcpcd
for opt in ${opts}; do
case "${opt}" in
nodns) args="${args} -e PEER_DNS=no";;
diff --git a/net/dhcpcd.sh b/net/dhcpcd.sh
index d07295a8..1878a9c0 100644
--- a/net/dhcpcd.sh
+++ b/net/dhcpcd.sh
@@ -1,4 +1,3 @@
-# Copyright 2004-2007 Gentoo Foundation
# Copyright 2007 Roy Marples
# All rights reserved
diff --git a/net/macchanger.sh b/net/macchanger.sh
index 825ede1d..b94a9bf4 100644
--- a/net/macchanger.sh
+++ b/net/macchanger.sh
@@ -1,4 +1,3 @@
-# Copyright 2004-2007 Gentoo Foundation
# Copyright 2007 Roy Marples
# All rights reserved
@@ -46,9 +45,10 @@ macchanger_pre_start() {
_down
mac=$(echo "${mac}" | tr '[:upper:]' '[:lower:]')
+ local hex="[0-9a-f][0-9a-f]"
case "${mac}" in
- # specific mac-addr, i wish there were a shorter way to specify this
- [0-9a-f][0-9a-f]:[0-9a-f][0-9a-f]:[0-9a-f][0-9a-f]:[0-9a-f][0-9a-f]:[0-9a-f][0-9a-f]:[0-9a-f][0-9a-f])
+ # specific mac-addr
+ ${hex}:${hex}:${hex}:${hex}:${hex}:${hex})
# We don't need macchanger to change to a specific mac address
_set_mac_address "${mac}"
if eend "$?"; then
diff --git a/net/macnet.sh b/net/macnet.sh
index a1fbb66d..936ff109 100644
--- a/net/macnet.sh
+++ b/net/macnet.sh
@@ -1,4 +1,3 @@
-# Copyright 2005-2007 Gentoo Foundation
# Copyright 2007 Roy Marples
# All rights reserved
diff --git a/net/ssidnet.sh b/net/ssidnet.sh
index 2012341c..f0f2e4fa 100644
--- a/net/ssidnet.sh
+++ b/net/ssidnet.sh
@@ -1,4 +1,3 @@
-# Copyright 2004-2007 Gentoo Foundation
# Copyright 2007 Roy Marples
# All rights reserved
diff --git a/net/system.sh b/net/system.sh
index c44e7099..cbb30715 100644
--- a/net/system.sh
+++ b/net/system.sh
@@ -1,4 +1,3 @@
-# Copyright 2005-2007 Gentoo Foundation
# Copyright 2007 Roy Marples
# All rights reserved
@@ -89,9 +88,6 @@ _system_ntp() {
buffer="${buffer}server ${x}\n"
done
- buffer="${buffer}driftfile /var/lib/ntp/ntp.drift\n"
- buffer="${buffer}logfile /var/log/ntp.log\n"
-
printf "${buffer}" > /etc/ntp.conf
chmod 644 /etc/ntp.conf
}
diff --git a/net/wpa_supplicant.sh b/net/wpa_supplicant.sh
index 7daa2c59..5b241629 100644
--- a/net/wpa_supplicant.sh
+++ b/net/wpa_supplicant.sh
@@ -1,4 +1,3 @@
-# Copyright 2004-2007 Gentoo Foundation
# Copyright 2007 Roy Marples
# All rights reserved