Re: Startup script at boot (Debian)

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: George Joseph Thekkekara
Date:  
To: plug-discuss
Subject: Re: Startup script at boot (Debian)
Amrit,

Here are some simple steps towards what you are trying to acheive;

1. Make a file called /etc/init.d/local.

2. Insert your following script in the above mentioned file

#! /bin/bash
#
# Powersaving mode for Athlon/Duron and KT266A chipset
setpci -v -H1 -s 0:0.0 70=86
setpci -v -H1 -s 0:0.0 95=1e
#
modprobe imm

3. Make the file executable with the command

chmod +x /etc/init.d/local

4. Link the new file by running

update-rc.d local defaults 80

This will do the trick

Note: If you just want to run the script only once while bootup, you
can ignore the step 4 above and instead of that you can add the
following to your /etc/inittab

LO:2:once:/etc/init.d/local

Where you should substitute for '2' with whatever is your initial default level.

Regards

George Joseph
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss