2008/7/17 paul_d_setiarso <[EMAIL PROTECTED]>:
> halo para sesepuh opensuse-id
>
> saya mau tanya.
>
> bagaimanakah cara agar perintah "$ ethtool -s eth0 speed 10 autoneg off "
> dijalankan setiap komputer start?
>
> terima kasih
>
>
> salam
> paul


Emang bagi yang biasa pakai fedora atau centos bingung nyari rc.local
di opensuse.
IMHO emang gak ada. boot.local itu bukan padanan rc.local. Karena
rc.local akan jalan paling akhir setelah semua service running di run
level 5. Sedang boot.local akan jalan paling awal sebelum service2
yang lain. Padahal untuk ngejalanin ethtool minimal ethernet udah
jalan.

Ini saya kasih contoh script. Namain aja eth0speed10. Taruh script ini
di direktori /etc/init.d
Terus:
# chmod 755
# chown root:root
# insserv /etc/init.d/eth0speed10

contoh script.....
============================================
#!/bin/sh
#
#
# /etc/init.d/eth0speed10
#
### BEGIN INIT INFO
# Provides:          eth0speed10
# Required-Start:    $network
# Should-Start:
# Required-Stop:
# Should-Stop:
# Default-Start:     3 5
# Default-Stop:      0 1 2 6
# Short-Description: Slow down eth0 to 10 MB/s full duplex autoneg off
# Description:       bla..bla...bla....
### END INIT INFO
#

test -s /etc/rc.status && . /etc/rc.status && rc_reset

case "$1" in
start )
        # script untuk ngelambatin eth0
        # free to copy
        #

        echo -n "Slow down eth0 to 10 MB/s"

        /usr/sbin/ethtool -s eth0 autoneg off
        sleep 1
        /usr/sbin/ethtool -s eth0 speed 10

        rc_status -v
        ;;

esac
rc_exit
==============================================

Silakan baca /etc/init.d/skeleton untuk petunjuk.

salam,
medwinz

-- 
Bill Cosby  - "Advertising is the most fun you can have with your clothes on."
_______________________________________________
milis mailing list
[email protected]
http://lists.opensuse-id.org/listinfo.cgi/milis-opensuse-id.org

Kirim email ke