From c9b13759a257ec7b14b23b602ff6434fc48acab7 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Tue, 10 Oct 2017 18:50:36 +0200 Subject: [PATCH] Debian GNU/Linux: Install finit.* using install and cp A recursive cp is requried for finit.d Signed-off-by: Joachim Nilsson --- contrib/debian/install.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/contrib/debian/install.sh b/contrib/debian/install.sh index 21df0eda..6efd1818 100755 --- a/contrib/debian/install.sh +++ b/contrib/debian/install.sh @@ -1,5 +1,4 @@ #!/bin/sh -FILES="finit.conf finit.d" if [ "x`id -u`" != "x0" ]; then echo @@ -33,9 +32,9 @@ if [ "x$yorn" = "xy" -o "x$yorn" = "xY" ]; then echo "Installing Finit files ..." make install cd `dirname $0` - for file in $FILES; do - install -vbD $file /etc/$file - done + install -vbD finit.conf /etc/finit.conf + cp -va finit.d /etc/ + echo "Setting up a GRUB boot entry ..." MENU=`grep gnu-linux /boot/grub/grub.cfg |head -1 |sed "s/menuentry '\([^']*\).*/\1/"` TYPE=`grep gnu-linux /boot/grub/grub.cfg |head -1 |sed "s/.*' --class \([a-z]*\).*/\1/"`