From 29b6bee139cd15fb31485ab771680e2851809ef0 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Thu, 21 Nov 2019 22:01:49 +0100 Subject: [PATCH] - move rcK away from skel-root --- make/target-scripts.mk | 4 +++ .../{hd1/etc => general/files-etc}/init.d/rcK | 0 skel-root/hd2/etc/init.d/rcK | 25 ------------------- skel-root/hd51/etc/init.d/rcK | 25 ------------------- skel-root/vuduo/etc/init.d/rcK | 25 ------------------- skel-root/vuplus/etc/init.d/rcK | 25 ------------------- 6 files changed, 4 insertions(+), 100 deletions(-) rename skel-root/{hd1/etc => general/files-etc}/init.d/rcK (100%) mode change 100755 => 100644 delete mode 100755 skel-root/hd2/etc/init.d/rcK delete mode 100755 skel-root/hd51/etc/init.d/rcK delete mode 100755 skel-root/vuduo/etc/init.d/rcK delete mode 100755 skel-root/vuplus/etc/init.d/rcK diff --git a/make/target-scripts.mk b/make/target-scripts.mk index 8924bab8..ab07f489 100644 --- a/make/target-scripts.mk +++ b/make/target-scripts.mk @@ -7,6 +7,7 @@ init-scripts: \ $(TARGET_DIR)/etc/init.d/globals \ $(TARGET_DIR)/etc/init.d/functions \ $(TARGET_DIR)/etc/init.d/rc \ + $(TARGET_DIR)/etc/init.d/rcK \ $(TARGET_DIR)/etc/init.d/camd \ $(TARGET_DIR)/etc/init.d/camd_datefix \ $(TARGET_DIR)/etc/init.d/coredump \ @@ -31,6 +32,9 @@ $(TARGET_DIR)/etc/init.d/functions: $(TARGET_DIR)/etc/init.d/rc: $(INSTALL_EXEC) -D $(TARGET_FILES)/files-etc/init.d/rc $(@) +$(TARGET_DIR)/etc/init.d/rcK: + $(INSTALL_EXEC) -D $(TARGET_FILES)/files-etc/init.d/rcK $(@) + $(TARGET_DIR)/etc/init.d/camd: $(INSTALL_EXEC) -D $(TARGET_FILES)/scripts/camd.init $(@) $(UPDATE-RC.D) $(@F) defaults 98 01 diff --git a/skel-root/hd1/etc/init.d/rcK b/skel-root/general/files-etc/init.d/rcK old mode 100755 new mode 100644 similarity index 100% rename from skel-root/hd1/etc/init.d/rcK rename to skel-root/general/files-etc/init.d/rcK diff --git a/skel-root/hd2/etc/init.d/rcK b/skel-root/hd2/etc/init.d/rcK deleted file mode 100755 index e7338005..00000000 --- a/skel-root/hd2/etc/init.d/rcK +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -. /etc/profile -. /etc/init.d/functions -. /etc/init.d/globals - -SHOWINFO "start" - -if [ -e /tmp/.flash.start ]; then - lcd4l_cmd=stop - lcd4l_msg="Updating STB ..." -else - lcd4l_cmd=off - lcd4l_msg="Shutdown STB ..." -fi - -# first stopping lcd4linux -test -d /tmp/lcd/ && echo ${lcd4l_msg} > /tmp/lcd/goodbye -service lcd4linux ${lcd4l_cmd} - -# stopping services and daemons in order of the symlink names -LOGINFO "run initscripts stop ..." -run_initscripts stop - -SHOWINFO "done" diff --git a/skel-root/hd51/etc/init.d/rcK b/skel-root/hd51/etc/init.d/rcK deleted file mode 100755 index e7338005..00000000 --- a/skel-root/hd51/etc/init.d/rcK +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -. /etc/profile -. /etc/init.d/functions -. /etc/init.d/globals - -SHOWINFO "start" - -if [ -e /tmp/.flash.start ]; then - lcd4l_cmd=stop - lcd4l_msg="Updating STB ..." -else - lcd4l_cmd=off - lcd4l_msg="Shutdown STB ..." -fi - -# first stopping lcd4linux -test -d /tmp/lcd/ && echo ${lcd4l_msg} > /tmp/lcd/goodbye -service lcd4linux ${lcd4l_cmd} - -# stopping services and daemons in order of the symlink names -LOGINFO "run initscripts stop ..." -run_initscripts stop - -SHOWINFO "done" diff --git a/skel-root/vuduo/etc/init.d/rcK b/skel-root/vuduo/etc/init.d/rcK deleted file mode 100755 index e7338005..00000000 --- a/skel-root/vuduo/etc/init.d/rcK +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -. /etc/profile -. /etc/init.d/functions -. /etc/init.d/globals - -SHOWINFO "start" - -if [ -e /tmp/.flash.start ]; then - lcd4l_cmd=stop - lcd4l_msg="Updating STB ..." -else - lcd4l_cmd=off - lcd4l_msg="Shutdown STB ..." -fi - -# first stopping lcd4linux -test -d /tmp/lcd/ && echo ${lcd4l_msg} > /tmp/lcd/goodbye -service lcd4linux ${lcd4l_cmd} - -# stopping services and daemons in order of the symlink names -LOGINFO "run initscripts stop ..." -run_initscripts stop - -SHOWINFO "done" diff --git a/skel-root/vuplus/etc/init.d/rcK b/skel-root/vuplus/etc/init.d/rcK deleted file mode 100755 index e7338005..00000000 --- a/skel-root/vuplus/etc/init.d/rcK +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -. /etc/profile -. /etc/init.d/functions -. /etc/init.d/globals - -SHOWINFO "start" - -if [ -e /tmp/.flash.start ]; then - lcd4l_cmd=stop - lcd4l_msg="Updating STB ..." -else - lcd4l_cmd=off - lcd4l_msg="Shutdown STB ..." -fi - -# first stopping lcd4linux -test -d /tmp/lcd/ && echo ${lcd4l_msg} > /tmp/lcd/goodbye -service lcd4linux ${lcd4l_cmd} - -# stopping services and daemons in order of the symlink names -LOGINFO "run initscripts stop ..." -run_initscripts stop - -SHOWINFO "done"