From 9f2403dffae514dca431828014a2dc9c9de4e61f Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 14 Dec 2007 14:12:38 +0000 Subject: Remove Gentoo copyright from all files that I know I have written --- net/macchanger.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'net/macchanger.sh') 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 -- cgit v1.2.3