From fe91063565ef6cc9b9fbe5ff7e8f1f15a5e01bca Mon Sep 17 00:00:00 2001 From: root Date: Fri, 24 Jun 2016 17:20:02 +0200 Subject: [PATCH] saving uncommitted changes in /etc prior to emerge run --- .etckeeper | 2 ++ conf.d/rarpd | 8 ++++++++ init.d/rarpd | 20 ++++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 conf.d/rarpd create mode 100755 init.d/rarpd diff --git a/.etckeeper b/.etckeeper index 584e457..6922749 100755 --- a/.etckeeper +++ b/.etckeeper @@ -230,6 +230,7 @@ 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/quota' +maybe chmod 0644 'conf.d/rarpd' maybe chmod 0644 'conf.d/rpcbind' maybe chmod 0644 'conf.d/rsyncd' maybe chmod 0644 'conf.d/rsyslog' @@ -1294,6 +1295,7 @@ 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/quota' +maybe chmod 0755 'init.d/rarpd' maybe chmod 0755 'init.d/root' maybe chmod 0755 'init.d/rpc.rquotad' maybe chmod 0755 'init.d/rpcbind' diff --git a/conf.d/rarpd b/conf.d/rarpd new file mode 100644 index 0000000..ef7fc48 --- /dev/null +++ b/conf.d/rarpd @@ -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 index 0000000..bf8cf1e --- /dev/null +++ b/init.d/rarpd @@ -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 +} -- 2.39.5