]> Frank Brehm's Git Trees - config/helga/etc.git/commitdiff
saving uncommitted changes in /etc prior to emerge run
authorFrank Brehm <frank@brehm-online.com>
Sun, 26 Jun 2016 22:13:24 +0000 (00:13 +0200)
committerroot <root@helga.brehm-online.com>
Sun, 26 Jun 2016 22:13:24 +0000 (00:13 +0200)
.etckeeper
conf.d/rarpd [new file with mode: 0644]
init.d/rarpd [new file with mode: 0755]

index 5a8c4c702ebdad4ad9121b5702eec0bdb7b8e29d..469fed1b19020827d0e138c16697a6ebbb1f98f4 100755 (executable)
@@ -453,6 +453,7 @@ maybe chmod 0644 'conf.d/pciparm'
 maybe chmod 0640 'conf.d/postgrey'
 maybe chmod 0644 'conf.d/pydoc-2.7'
 maybe chmod 0644 'conf.d/pydoc-3.4'
+maybe chmod 0644 'conf.d/rarpd'
 maybe chmod 0644 'conf.d/rsyncd'
 maybe chmod 0644 'conf.d/rsyslog'
 maybe chmod 0644 'conf.d/samba'
@@ -1695,6 +1696,7 @@ maybe chmod 0755 'init.d/proftpd'
 maybe chmod 0755 'init.d/pwcheck'
 maybe chmod 0755 'init.d/pydoc-2.7'
 maybe chmod 0755 'init.d/pydoc-3.4'
+maybe chmod 0755 'init.d/rarpd'
 maybe chmod 0755 'init.d/root'
 maybe chmod 0755 'init.d/rsyncd'
 maybe chmod 0755 'init.d/rsyslog'
diff --git a/conf.d/rarpd b/conf.d/rarpd
new file mode 100644 (file)
index 0000000..ef7fc48
--- /dev/null
@@ -0,0 +1,8 @@
+# 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"
diff --git a/init.d/rarpd b/init.d/rarpd
new file mode 100755 (executable)
index 0000000..bf8cf1e
--- /dev/null
@@ -0,0 +1,20 @@
+#!/sbin/openrc-run
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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
+}