mirror of
https://github.com/troglobit/finit.git
synced 2026-11-07 16:01:08 +00:00
Add option to install Finit as system default init
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
b7617248ce
commit
27abcb5682
1 file changed
+9
@@ -36,6 +36,15 @@ if [ "x$yorn" = "xy" -o "x$yorn" = "xY" ]; then
|
|||||||
cp -va finit.d /etc/
|
cp -va finit.d /etc/
|
||||||
|
|
||||||
echo "*** Done"
|
echo "*** Done"
|
||||||
|
read -p "*** Install Finit as the system default Init (y/N)? " yorn
|
||||||
|
if [ "x$yorn" = "xy" -o "x$yorn" = "xY" ]; then
|
||||||
|
echo "*** Updating /sbin/init symlink --> finit ..."
|
||||||
|
cd /sbin
|
||||||
|
rm init
|
||||||
|
ln -s finit init
|
||||||
|
cd -
|
||||||
|
echo "*** Done"
|
||||||
|
fi
|
||||||
echo
|
echo
|
||||||
else
|
else
|
||||||
echo
|
echo
|
||||||
|
|||||||
Reference in new issue
Block a user