vapier 15/04/25 01:05:42 Added: rarpd.init.d rarpd.conf.d Log: Add init.d script for rarpd #312623 by Weeve. (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
Revision Changes Path 1.1 net-misc/iputils/files/rarpd.init.d file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/iputils/files/rarpd.init.d?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/iputils/files/rarpd.init.d?rev=1.1&content-type=text/plain Index: rarpd.init.d =================================================================== #!/sbin/runscript # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-misc/iputils/files/rarpd.init.d,v 1.1 2015/04/25 01:05:42 vapier Exp $ pidfile="/var/run/rarpd.pid" command="/usr/sbin/rarpd" # The -d option keeps it from forking. This way s-s-d can do the fork and # set up the pidfile with the right value below. command_args="-d ${RARPD_OPTS} ${RARPD_IFACE}" start_stop_daemon_args="--background --make-pidfile" start_pre() { if [ ! -f /etc/ethers ] ; then eerror "Please create /etc/ethers with the following content:" eerror "[MAC address] [name or IP]" return 1 fi return 0 } 1.1 net-misc/iputils/files/rarpd.conf.d file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/iputils/files/rarpd.conf.d?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/iputils/files/rarpd.conf.d?rev=1.1&content-type=text/plain Index: rarpd.conf.d =================================================================== # Config file for /etc/init.d/rarpd # You probably want to select the interface for this to listen on. # By default it uses loopback which most likely won't help. RARPD_IFACE="lo" # See the rarpd(8) manpage for more info. RARPD_OPTS="-b /tftpboot"
