Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Dirk on March 26, 2004, 07:38:07 AM

Title: Adding startup items to rc.local after initscripts update?
Post by: Dirk on March 26, 2004, 07:38:07 AM
How do i add the following lines to rc.local with the new initscripts-6.67-1es26.i386.rpm in place.

modprobe i2c-isa
modprobe eeprom
modprobe via686a
/sbin/modprobe ide-scsi > /dev/null 2>&1

It doesn't work anymore with the new initscripts-6.67-1es26.i386.rpm.

below rc.local
------------------------------------------------------
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

# At the moment, we only support start and restart arguments.
return_value=0
case "$1" in
    *start)
    [ -d /etc/e-smith/events/local ] && /sbin/e-smith/signal-event local
    return_value=$?
    touch /var/lock/subsys/local
    ;;
esac

exit $return_value
# I2C adapter drivers
# modprobe unknown adapter SMBus Via Pro adapter at 5000 using Non-I2C SMBus adapter
modprobe i2c-isa
# I2C chip drivers
modprobe eeprom
modprobe via686a

/sbin/modprobe ide-scsi > /dev/null 2>&1

Dirk
Title: You exit too soon
Post by: harold on March 26, 2004, 01:37:37 PM
Move the statement:

exit $return_value

to be below your statements.
Title: Adding startup items to rc.local after initscripts update?
Post by: Robert on March 26, 2004, 06:09:15 PM
You shouldn't make changes to rc.local. Instead you should write a small action script to load your modules and put a symlink to that action in /etc/e-smith/events/local/. That's what the event is there for.
Title: Adding startup items to rc.local after initscripts update?
Post by: okepc on March 29, 2004, 11:08:02 AM
Txs harold that worked !