View Single Post
  #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]