LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-08-2003, 09:34 AM   #1
v2-ncl
LQ Newbie
 
Registered: Oct 2003
Location: UK
Distribution: Slackware 9.1
Posts: 14

Rep: Reputation: 0
on Network Up Script run? On Battery power run script?


Hello People,

wonder if anyone can help me.

my system uses dhcp to get an ip address (which is not always successful on the first attemptm ) cause i have uni network access and home network access and its just easier this way.

current system set up:-

i have dhcpcd running at boot utilising rc.local to run this, then i also have the firewall script starting and then snort. my problem is i dont always get a ip address the first time.

the way i want the system to be set up :-

run dhcpcd on boot up, if it gets and ip address then run subsequent scripts to run the firewall and snort. i know i could create a script to run at boot time to do this but what i really want is when the network is up then run the scripts would make my life easier u see

also similar kinda thing for acpi

if the laptop is running on battery power i want acpi to run a program that dims my screen automatically, and when the ac is plugged in to pump the screen back up to full brightness..

is this possible..

thanks

V2
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
'cannot stat' script in /etc/rc.d/, try to run script at startup quintan Linux - Software 1 11-21-2005 02:53 AM
Shell script to run pl/sql script. colly Linux - General 1 09-09-2004 06:49 AM
Script to run script in multiple directories... seabass55 Linux - General 5 07-06-2004 12:44 AM
When running a script I get a box asking "Run or display ?" I want it to just run aaronruss Linux - Newbie 4 05-28-2004 12:03 AM
can't run a script script from icon in konqueror scottsteibel Linux - Software 1 08-02-2003 07:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration