Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-24-2008, 09:59 PM   #1
LQ Newbie
Registered: Aug 2008
Posts: 10

Rep: Reputation: 0
Startup script as root in openSUSE?

Hi, I'd like to execute two commands on startup:

brctl addif br0 ath0
hostapd /etc/hostapd.conf

These need to be executed after networking, and as root. How would I do this?
Old 11-24-2008, 10:42 PM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,898

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
I'm not certain of this, so be warned.

In /etc/init.d, there are several boot scripts. Try adding the commands to the boot.localnet script, down at the end, after the case argument and before the re_exit line.

If that doesn't work, try adding the commands to the boot.local script.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Run Python script as root at startup StuL Linux - General 2 03-05-2008 06:33 PM
executing startup script on shared server (not as root!) agentspanky Linux - Newbie 3 02-11-2008 02:42 AM
How do I run a startup script as a user other than root? Questor21 Linux - Software 4 04-08-2006 12:51 PM
How to run startup script/daemon as a user other than root? Akhran Debian 2 02-04-2006 02:20 AM
Lauching script at shell startup without having root access. begin55676 Linux - Newbie 2 12-10-2004 04:42 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:42 AM.

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