Users online right now: 114 - Login  » search  » forum index  

Save configuration and autorun

ziopio
wrote 1 year ago


reply
Hello,I have installed Slax on an hard disk ,all ok,but,when I make a change (I set a manual ip to connect), after a reboot,this setting turns to default.Why?
Is possible to set an application to run at the start?
Thanks
I have slax 6.0.9
 
Slaxmax
wrote 1 year ago


reply
See its http://www.slax.org/forum.php?action=view&parentID=77364&highlight=dat
 
jcsoh
wrote 1 year ago


reply
I don't think the usual changes= cheat code or using slaxsav,dat will work to save the ip address as slax;s resets it each time.

Take a look at /etc/ppp/resolv.conf

You can manually edit it and make use of the /rootcopy method to overwrite the slax's resolv.conf with you own resolv.conf.

"Is possible to set an application to run at the start?"
http://www.slax.org/forum.php?action=view&parentID=78934
 
burninbush
wrote 1 year ago


reply
@ ziopio ...

In addition to Jcsoh's suggestion, be aware that you can run a script of your own at boot; just tack its name onto the existing autoexec= command in slax.cfg.
 
ziopio
wrote 1 year ago


reply
Thakn,but I have not resolved the problem.Can I do a sh file and put it in autorun folder?
 
burninbush
wrote 1 year ago


reply
@ ziopio ... any shell commands you can use to force the IP can be put into a script, which can be put into the autorun folder. Don't forget to chmod +x myscript to make it executable.

You can also invoke it at boot time; just add it to the existing autoexec= command(s). Even works for people booting from a cd; the script can be located on a partition that slax would mount during bootup.

autoexec=xconf;telinit~4 could become instead autoexec=/mnt/sda1/myscript;xconf;telinit~4
 
opiepieopie
wrote 349 days ago


reply
how make ad hoc network in slax???
 

  » search  » forum index  

Post your reply

Your name (Login):

Message:

These HTML tags are allowed: <quote>, <b>, <u>, <i>, <pre>, <code>, <small>, <h1>, <h2>, <h3>, <li>



Slax is generously supported by: P&P Software GmbH and wisol technologie GmbH