LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-03-2006, 09:18 AM   #1
gerold_vandijk
LQ Newbie
 
Registered: Feb 2006
Posts: 1

Rep: Reputation: 0
custom script in SuSE10.0


I wrote my own script to customize the firewall and activate NAT masquerade to route between my 2 netwok adapters (IPTABLES stuff), in SuSE 10.0.It works fine when ran from the command prompt, but the settings are overruled by the standard SuSE10.0 config file(s) at startup.

Q: where do I place my script to have it permanently beeing activated also after a reboot?

gerold@sicon-sr.com
 
Old 02-03-2006, 09:26 AM   #2
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.1
Posts: 1,469

Rep: Reputation: 46
is there a file called " /etc/init.d/boot.local "

i might be imagining it though.

getting old....
 
Old 02-03-2006, 10:14 AM   #3
pokemaster
Member
 
Registered: Apr 2005
Location: Massachusetts, USA
Distribution: debian,ubuntu,slackware
Posts: 110

Rep: Reputation: 17
there's probably a file as mentioned by satinet (might be called local instead of boot.local, the existence and name of this file varies from distro to distro)

I know with Gentoo and Debian, there's a tool to set up this script if it doesn't exist. first, create /etc/init.d/local, make it call your script, chmod it to 755, then
Code:
update-rc.d local defaults 99
Wirh Gentoo, that's a little different... but I doubt Suse uses the Gentoo-type tool.

This will load your local script (with priority 99, so it'll load toward the end of the boot process), and it'll overwrite the settings made by Suse.


Good luck, let us know if it works!
 
  


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
how to set up pppoe in suse10... not able to acces adsl modem thru suse10 akshay_jp SUSE / openSUSE 5 09-04-2006 11:39 PM
Bash script to browse directory with a custom output ? raf_iso Programming 7 01-12-2006 12:09 PM
Create custom user's directory with simple script dtournas Programming 2 09-09-2004 06:00 AM
Gentoo custom script dependancy problem exodist Linux - Distributions 18 07-24-2004 02:19 AM
Custom yum menu script. GufyMike Fedora 2 05-25-2004 01:38 PM


All times are GMT -5. The time now is 10:49 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