Zrób tak:
#w konsoli
mcedit
#Skopiuj to
#!/bin/sh
#
case "$1" in
start)
#
echo ""
echo " Wirtualne interfejsy IMQ ----- ON -----"
echo ""
/sbin/modprobe imq numdevs=6 &>/dev/null
/sbin/ifconfig imq0 up &>/dev/null
/sbin/ifconfig imq1 up &>/dev/null
/sbin/ifconfig imq2 up &>/dev/null
/sbin/ifconfig imq3 up &>/dev/null
/sbin/ifconfig imq4 up &>/dev/null
/sbin/ifconfig imq5 up &>/dev/null
#
;;
stop)
#
echo ""
echo " Wirtualne interfejsy IMQ ----- OFF -----"
echo ""
/sbin/ifconfig imq0 down &>/dev/null
/sbin/ifconfig imq1 down &>/dev/null
/sbin/ifconfig imq2 down &>/dev/null
/sbin/ifconfig imq3 down &>/dev/null
/sbin/ifconfig imq4 down &>/dev/null
/sbin/ifconfig imq5 down &>/dev/null
/sbin/rmmod imq &>/dev/null
#
;;
restart)
$0 stop
$0 start
;;
*)
echo ""
echo "Uzycie[ start | stop | restart ]"
echo ""
exit
;;
esac
# wklejasz w edytorze Shift + Insert, zapisujesz F2. I dalej robisz jak w instrukcji.