#!/bin/sh
run_hook(){if[["${randommac}"=="y"]];thenif[[-n"${ip}"]];thenchangemac="$(echo${ip}|cut-d:-f6)"fiif[[-z"${changemac}"]];thenchangemac="eth0"fimsg":: Initializing network interface ${changemac} with random mac address..."macchanger-e${changemac}fi}