openSUSE Forums > Archives > SF Archives > ARCHIVES - Install/Boot » How To Run Custom Script At Startup?

Go Back   openSUSE Forums > Archives > SF Archives > ARCHIVES - Install/Boot
Forums FAQ Members List Search Today's Posts Mark Forums Read

ARCHIVES - Install/Boot Questions about installation or problems booting SUSE Linux

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-Nov-2007, 15:34
DoDo
Guest
 
Posts: n/a
Default

Hello everyone!

I've just installed openSuSE 10.3 x86_64 on my laptop and it works perfectly.

I am curious: how to run custom script at startup with root permissions (without need for entering root password): I need this command to be executed before login screen appears:

wpa_supplicant -D wired -i eth0 -c /etc/wpa_supplicant/domski_lan.conf -B

How to do that?

Thanks in advance.
  #2 (permalink)  
Old 06-Nov-2007, 16:27
darkmac
Guest
 
Posts: n/a
Default

open a konsole and do the following:
1.cd /etc/init.d/
2.touch mumulache
3.vim mumulache
4.enter wpa_supplicant -D wired -i eth0 -c /etc/wpa_supplicant/domski_lan.conf -B in this file
5.save the file
6.chmod +x mumulache
7.chkconfig -a mumulache

The above commands does the following
1. changes directory to a directory which contains the startup scripts
2. creates a file named mumulache
3. edit the file mumulache (vim is a text editor....use man vim if you are not familiar with it)
4. write your command in this file
5. save the file (again....use man vim to learn how to save the file)
6. change the file to executable making it a script
7. add mumulache script to startup so it starts even after reboot

Quote:
Hello everyone!

I've just installed openSuSE 10.3 x86_64 on my laptop and it works perfectly.

I am curious: how to run custom script at startup with root permissions (without need for entering root password): I need this command to be executed before login screen appears:

wpa_supplicant -D wired -i eth0 -c /etc/wpa_supplicant/domski_lan.conf -B

How to do that?

Thanks in advance.
[/b]
 


Bookmarks

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On



 

Search Engine Friendly URLs by vBSEO 3.2.0