[Clfs-commits] [Bootscripts Embedded]Bootscripts for CLFS Embedded branch, master, updated. 87cfd4f2bccee5eda08a3f8468ca5b2a3d0e9efc
git
git at clfs.org
Fri Oct 27 06:59:49 PDT 2017
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Bootscripts for CLFS Embedded".
The branch, master has been updated
via 87cfd4f2bccee5eda08a3f8468ca5b2a3d0e9efc (commit)
via 360b495a4117d122278b5f8862b2a7664df8c11c (commit)
via 382b548c9bf10fad6a37a863b6ee1de329ba78b3 (commit)
from 682d006084e23b41d241dd46853c1efdb709c696 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 87cfd4f2bccee5eda08a3f8468ca5b2a3d0e9efc
Author: Andrew Bradford <andrew at bradfordembedded.com>
Date: Thu Oct 12 14:34:19 2017 -0400
Makefile: Rearrange targets so 'install-bootscripts' is default
In this way, performing a 'make' with the default target selected will
only install the core critical bootscripts for startup, shutdown, and
syslog. If you want the other bootscripts, you install them manually or
by using 'make all'.
diff --git a/Makefile b/Makefile
index 3f48387..ab1faa1 100644
--- a/Makefile
+++ b/Makefile
@@ -4,13 +4,6 @@ MODE := 754
DIRMODE := 755
CONFMODE := 644
-all: install-bootscripts install-dropbear install-netplug
-
-create-dirs:
- install -d -m ${DIRMODE} ${EXTDIR}/rc.d/init.d
- install -d -m ${DIRMODE} ${EXTDIR}/rc.d/start
- install -d -m ${DIRMODE} ${EXTDIR}/rc.d/stop
-
install-bootscripts: create-dirs
install -m ${CONFMODE} clfs/rc.d/init.d/functions ${EXTDIR}/rc.d/init.d/
install -m ${MODE} clfs/rc.d/startup ${EXTDIR}/rc.d/
@@ -19,6 +12,13 @@ install-bootscripts: create-dirs
ln -sf ../init.d/syslog ${EXTDIR}/rc.d/start/S05syslog
ln -sf ../init.d/syslog ${EXTDIR}/rc.d/stop/K99syslog
+all: install-bootscripts install-dropbear install-netplug
+
+create-dirs:
+ install -d -m ${DIRMODE} ${EXTDIR}/rc.d/init.d
+ install -d -m ${DIRMODE} ${EXTDIR}/rc.d/start
+ install -d -m ${DIRMODE} ${EXTDIR}/rc.d/stop
+
install-dropbear: create-dirs
install -m ${MODE} clfs/rc.d/init.d/sshd ${EXTDIR}/rc.d/init.d/
ln -sf ../init.d/sshd ${EXTDIR}/rc.d/start/S30sshd
commit 360b495a4117d122278b5f8862b2a7664df8c11c
Author: Andrew Bradford <andrew at bradfordembedded.com>
Date: Thu Oct 12 14:33:04 2017 -0400
Makefile: Add 'install-netplug' target
Actually install the netplug start/stop script.
diff --git a/Makefile b/Makefile
index e80bc53..3f48387 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ MODE := 754
DIRMODE := 755
CONFMODE := 644
-all: install-bootscripts install-dropbear
+all: install-bootscripts install-dropbear install-netplug
create-dirs:
install -d -m ${DIRMODE} ${EXTDIR}/rc.d/init.d
@@ -24,4 +24,9 @@ install-dropbear: create-dirs
ln -sf ../init.d/sshd ${EXTDIR}/rc.d/start/S30sshd
ln -sf ../init.d/sshd ${EXTDIR}/rc.d/stop/K30sshd
-.PHONY: all create-dirs install-bootscripts install-dropbear
+install-netplug: create-dirs
+ install -m ${MODE} clfs/rc.d/init.d/netplugd ${EXTDIR}/rc.d/init.d/
+ ln -sf ../init.d/netplugd ${EXTDIR}/rc.d/start/S10netplugd
+ ln -sf ../init.d/netplugd ${EXTDIR}/rc.d/stop/K90netplugd
+
+.PHONY: all create-dirs install-bootscripts install-dropbear install-netplug
commit 382b548c9bf10fad6a37a863b6ee1de329ba78b3
Author: Andrew Bradford <andrew at bradfordembedded.com>
Date: Thu Oct 12 14:28:40 2017 -0400
netplugd: Create start/stop script
diff --git a/clfs/rc.d/init.d/netplugd b/clfs/rc.d/init.d/netplugd
new file mode 100755
index 0000000..acde2c8
--- /dev/null
+++ b/clfs/rc.d/init.d/netplugd
@@ -0,0 +1,25 @@
+#!/bin/ash
+
+# Netplugd Startup Script
+
+. /etc/rc.d/init.d/functions
+
+case "$1" in
+start)
+ echo -n "Starting netplugd: "
+ netplugd
+ check_status
+ ;;
+stop)
+ echo -n "Stopping netplugd: "
+ killall netplugd
+ check_status
+ ;;
+restart)
+ $0 stop
+ $0 start
+ ;;
+*)
+ echo "Usage: $0 {start|stop|restart}"
+ exit 1
+esac
-----------------------------------------------------------------------
Summary of changes:
Makefile | 21 +++++++++++++--------
clfs/rc.d/init.d/netplugd | 25 +++++++++++++++++++++++++
2 files changed, 38 insertions(+), 8 deletions(-)
create mode 100755 clfs/rc.d/init.d/netplugd
hooks/post-receive
--
Bootscripts for CLFS Embedded
More information about the Clfs-commits
mailing list