summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-12-14 14:12:38 +0000
committerRoy Marples <roy@marples.name>2007-12-14 14:12:38 +0000
commit9f2403dffae514dca431828014a2dc9c9de4e61f (patch)
treebc1bd6ae83589f729a3bf7ca6d5ab592cbec56fd /net
parenta3db3bac6242ff29871161620d0449125b3262aa (diff)
downloadopenrc-9f2403dffae514dca431828014a2dc9c9de4e61f.tar.gz
openrc-9f2403dffae514dca431828014a2dc9c9de4e61f.tar.bz2
openrc-9f2403dffae514dca431828014a2dc9c9de4e61f.tar.xz
Remove Gentoo copyright from all files that I know I have written
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 a59fb3b..ef68933 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 d07295a..1878a9c 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 825ede1..b94a9bf 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 a1fbb66..936ff10 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 2012341..f0f2e4f 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 c44e709..cbb3071 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 7daa2c5..5b24162 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