Install a proper #!/bin/sh style rc.local on Void Linux

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2017-10-18 10:18:11 +02:00
parent bacaea0e02
commit 3ebb697910
2 changed files with 10 additions and 1 deletions
+3 -1
View File
@@ -31,7 +31,9 @@ if [ "x$yorn" = "xy" -o "x$yorn" = "xY" ]; then
echo "*** Installing Finit files ..."
make install
cd `dirname $0`
install -vbD finit.conf /etc/finit.conf
for file in finit.conf rc.local; do
install -vbD $file /etc/$file
done
cp -va finit.d /etc/
read -p "*** Install Finit as the system default Init (y/N)? " yorn
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
# This script is executed once at boot, at the very end,
# right before starting the TTYs.
#
# Each line is run in sequence.
#
# NOTE: Remeber to set the executable bit!