Remove old symlinks and install finit.d directory instead

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2017-10-10 16:15:36 +02:00
1 parent e27283c5e6
commit 449c712329
1 file changed
+1 -7
+1 -7
View File
@@ -1,7 +1,5 @@
#!/bin/sh #!/bin/sh
FILES="finit.conf finit.d"
SYMLINKS="start.d/*"
FILES="finit.conf"
if [ "x`id -u`" != "x0" ]; then if [ "x`id -u`" != "x0" ]; then
echo echo
@@ -35,13 +33,9 @@ if [ "x$yorn" = "xy" -o "x$yorn" = "xY" ]; then
echo "Installing Finit files ..." echo "Installing Finit files ..."
make install make install
cd `dirname $0` cd `dirname $0`
mkdir -p /etc/start.d
for file in $FILES; do for file in $FILES; do
install -vbD $file /etc/$file install -vbD $file /etc/$file
done done
for link in $SYMLINKS; do
cp -va $link /etc/$link
done
echo "Setting up a GRUB boot entry ..." echo "Setting up a GRUB boot entry ..."
MENU=`grep gnu-linux /boot/grub/grub.cfg |head -1 |sed "s/menuentry '\([^']*\).*/\1/"` 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/"` TYPE=`grep gnu-linux /boot/grub/grub.cfg |head -1 |sed "s/.*' --class \([a-z]*\).*/\1/"`