#vi mac#!/bin/bash# chkconfig: 2345 90 90 # description: test servicecase "$1" in start) /usr/local/bin/macchanger -m 00:00:00:00:00:00 eth0 --> mac 변경 ;; stop) /usr/local/bin/macchanger --random eth0 --> mac random ;; *) echo "Usage {start|stop}" exit 1 ;;esacexit 0 # chmod 0744 mac# chown root:sys /etc/init.d/mac# mv mac /etc/init.d/# cd /etc/init.d# ln mac /etc/rc2.d/S99mac# ln mac /etc/rcn.d..