From 961266e262590d5018a1e9bd95632d3cad51dde9 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 27 May 2013 11:31:02 +0200 Subject: Initial import --- hook/randommac | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 hook/randommac (limited to 'hook') diff --git a/hook/randommac b/hook/randommac new file mode 100644 index 0000000..b6bddc3 --- /dev/null +++ b/hook/randommac @@ -0,0 +1,15 @@ +#!/bin/sh + +run_hook() { + if [[ "${randommac}" == "y" ]]; then + if [[ -n "${ip}" ]]; then + changemac="$(echo ${ip} | cut -d: -f6)" + fi + if [[ -z "${changemac}" ]]; then + changemac="eth0" + fi + + msg ":: Initializing network interface ${changemac} with random mac address..." + macchanger -e ${changemac} + fi +} -- cgit v1.2.3-54-g00ecf