Run Script at Startup

Hi,
i’m sure this question was asked a quadrillion times before, but since i’m a noob i can’t figure out what i’m doing wrong. I want to start a #!/bin/sh script automatically every time i boot my machine.
I tried to chkconfig -a script.
I tried to adjust at what runlevel it runs and put it on “5”.
When i chkconfig -a an error message appears:

insserv: warning: script ‘ezup’ missing LSB tags and overrides

This script needs network availibility.
Nothing helped. How can i solve that simple problem?
Any help appreciated.

iamlostsincebirth wrote:
> i’m sure this question was asked a quadrillion times before, but since
> i’m a noob i can’t figure out what i’m doing wrong. I want to start a
> #!/bin/sh script automatically every time i boot my machine.
> I tried to chkconfig -a script.

That’s not supposed to work like that.

> I tried to adjust at what runlevel it runs and put it on “5”.

Not like that either.

> When i chkconfig -a an error message appears:> insserv: warning: script ‘ezup’ missing LSB tags and overrides

Not like that either.

> This script needs network availibility.
> Nothing helped. How can i solve that simple problem?

Copy and adjust /etc/init.d/skeleton if you want it to be an init
script. What is your script supposed to do anyway?

Kind regards,
Andreas Stieger

Well, it updates my dyndns account to my WAN IP. It visits Current IP Check reads my IP and starts ez-update with the needed parameters.

Install package “ddclient” and use the init-script there.

I tried ddclient, but it was too complicated for me. My solution works… kind of…

Huh?

  • Install ddclient

  • Activate ddclient in runlevel editor via YaST

What’s complicated about that?

The difficult part is to configure that thing. At least for me.

Why don’t you try .shrc??

If your shell is “/bin/sh”, then create “.shrc” in your $HOME directory. Or it may be already there, then edit it. You can get your shell by putting this in terminal:
$echo $SHELL

If it returns “/bin/bash” then create or edit “.bashrc” in your $HOME directory.
Whatever you put in “.bashrc” or “.shrc”, it will get executed when you log in.

I hope I understood what you wanted :slight_smile:

DynDNS.com - Support – Knowledge Base – Using ddclient With DynDNS Services

Took me 5 minutes with that tutorial.

Thank you vendetta18, that solution is acceptable for me. Maybe i’ll try ddclient later, because it would be better if my IP was updated even if i don’t login.
Thank you for your time.