summaryrefslogtreecommitdiff
path: root/xi/services/dhcpcd
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-03-29 23:36:22 +0100
committerdavidovski <david@davidovski.xyz>2022-03-29 23:36:22 +0100
commitdf88860947686a5e6507fc5d60ff33eac1158c6b (patch)
treed1dc7f2f003b08afb6d45f7170d7a0dd353060d3 /xi/services/dhcpcd
parent33d239ecb3d66db2b005afbe68a7029c3f2d2ee0 (diff)
using sysvinit system bootscriptsHEADmaster
Diffstat (limited to 'xi/services/dhcpcd')
-rwxr-xr-xxi/services/dhcpcd70
1 files changed, 0 insertions, 70 deletions
diff --git a/xi/services/dhcpcd b/xi/services/dhcpcd
deleted file mode 100755
index 050413c..0000000
--- a/xi/services/dhcpcd
+++ /dev/null
@@ -1,70 +0,0 @@
-#!/bin/bash
-# Begin services/dhcpcd
-
-# Origianlly dased upon lfs-bootscripts-1.12 $NETWORK_DEVICES/if{down,up}
-# Rewritten by Nathan Coulson <nathan@linuxfromscratch.org>
-# Adapted for dhcpcd by DJ Lucas <dj@linuxfromscratch.org>
-# Update for LFS 7.0 by Bruce Dubbs <bdubbs@linuxfromscratch,org>
-
-# Call with: IFCONFIG=<filename> /lib/services/dhcpcd <IFACE> <up | down>
-
-#$LastChangedBy: bdubbs $
-#$Date: 2012-04-09 19:48:51 +0000 (Mon, 09 Apr 2012) $
-
-#. /lib/lsb/init-functions
-. $IFCONFIG
-
-pidfile="/var/run/dhcpcd-$1.pid"
-
-case "$2" in
- up)
- # Cosmetic output not needed for multiple services
- #if ! $(echo ${SERVICE} | grep -q " "); then
- # log_info_msg2 "\n" # Terminate the previous message
- #fi
-
- echo "Starting dhcpcd on the $1 interface..."
-
- # Test to see if there is a stale pid file
- if [ -f "$pidfile" ]; then
- ps `cat "$pidfile"` | grep dhcpcd > /dev/null
-
- if [ $? != 0 ]; then
- rm -f /var/run/dhcpcd-$1.pid > /dev/null
-
- else
- echo "dhcpcd is already running!"
- exit 2
- fi
- fi
-
- /sbin/dhcpcd $1 $DHCP_START
- #evaluate_retval
- ;;
-
- down)
- echo "Stopping dhcpcd on the $1 interface..."
-
- if [ -z "$DHCP_STOP" ]; then
- kill -9 $(cat ${pidfile})
- rm -f ${pidfile}
-
- else
- /sbin/dhcpcd $1 $DHCP_STOP &> /dev/null
-
- if [ "$?" -eq 1 ]; then
- echo "dhcpcd not running!"
- exit 2
- fi
- fi
-
- #evaluate_retval
- ;;
-
- *)
- echo "Usage: $0 [interface] {up|down}"
- exit 1
- ;;
-esac
-
-# End services/dhcpcd