summaryrefslogtreecommitdiff
path: root/net/macchanger.sh
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/macchanger.sh
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/macchanger.sh')
-rw-r--r--net/macchanger.sh6
1 files changed, 3 insertions, 3 deletions
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