root start-up script

Kernels & Hardware, configuring network, installing services

root start-up script

Postby lolkert » 2017-12-21 16:55

Hello,
to make static arp, i use:
Code: Select all
arp -s -i <interface> <mac> <ip>

this needs to be run as root, and i would like to know how can i make a start up script, so that above command runs each time the computer gets turned on?
lolkert
 
Posts: 2
Joined: 2017-12-21 16:51

Re: root start-up script

Postby Capitain_Jack » 2017-12-21 17:06

lolkert wrote:Hello,
to make static arp, i use:
Code: Select all
arp -s -i <interface> <mac> <ip>

this needs to be run as root, and i would like to know how can i make a start up script, so that above command runs each time the computer gets turned on?

Here, take a look into this post:
http://forums.debian.net/viewtopic.php?f=30&t=55234

Please, if you feel you issue is solved, please, edit the first message title and add [SOLVED] to the beginning of it, so others can benefit from your solution
"Great spirits have always encountered violent opposition from mediocre minds."
Albert Einstein
"All wrong-doing arises because of mind. If mind is transformed can wrong-doing remain?"
Buddha
User avatar
Capitain_Jack
 
Posts: 150
Joined: 2017-12-15 12:07
Location: Brazil capital, Brasilia, At the favela.

Re: root start-up script

Postby Head_on_a_Stick » 2017-12-21 21:12

lolkert wrote:Hello,
to make static arp, i use:
Code: Select all
arp -s -i <interface> <mac> <ip>

this needs to be run as root, and i would like to know how can i make a start up script, so that above command runs each time the computer gets turned on?

http://0pointer.de/blog/projects/system ... ins-3.html
"To be free is nothing, to become free is everything." — Hegel
User avatar
Head_on_a_Stick
 
Posts: 6987
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: root start-up script

Postby debiman » 2017-12-24 08:44

^ i'd rather have pointed to archwiki, e.g.: https://wiki.archlinux.org/index.php/Sy ... unit_files
but yes, i agree, since systemd is already installed and running anyway, it would be the best option here.
User avatar
debiman
 
Posts: 1738
Joined: 2013-03-12 07:18


Return to System configuration

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable