LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-24-2008, 08:59 PM   #1
AVT
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, 09:42 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,887

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
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.
 
  


Reply


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 05:33 PM
executing startup script on shared server (not as root!) agentspanky Linux - Newbie 3 02-11-2008 01:42 AM
How do I run a startup script as a user other than root? Questor21 Linux - Software 4 04-08-2006 11:51 AM
How to run startup script/daemon as a user other than root? Akhran Debian 2 02-04-2006 01:20 AM
Lauching script at shell startup without having root access. begin55676 Linux - Newbie 2 12-10-2004 03:42 PM


All times are GMT -5. The time now is 05:23 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration