summaryrefslogtreecommitdiff
path: root/slackware-bootstrap/runlevel
diff options
context:
space:
mode:
authornavewindre <boneyaard@gmail.com>2025-06-18 05:14:57 +0200
committernavewindre <boneyaard@gmail.com>2025-06-18 05:14:57 +0200
commit206896b42d5c8921314267eb300f70c2e1aac374 (patch)
tree5d96fda4b1e6843d6b62fc70ef9e9efa350851ad /slackware-bootstrap/runlevel
parent4db9df83e5f7b4abdd49d0bc4139cfb95b07e60f (diff)
fix
Diffstat (limited to 'slackware-bootstrap/runlevel')
-rwxr-xr-xslackware-bootstrap/runlevel16
1 files changed, 16 insertions, 0 deletions
diff --git a/slackware-bootstrap/runlevel b/slackware-bootstrap/runlevel
new file mode 100755
index 0000000..03aaaf8
--- /dev/null
+++ b/slackware-bootstrap/runlevel
@@ -0,0 +1,16 @@
+#!/bin/bash
+basedir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
+
+echo "=================[ runlevel choice ] ===================="
+echo "this means that you only get this console and no graphics"
+echo "if you would like to change the runlevel to 4, enabling"
+echo "graphical login, you can do that now."
+echo "========================================================="
+
+read -p "would you like to change runlevel to 4 [y/n]? (n) " choice
+if [[ $choice == 'y' ]]; then
+ cp -f $basedir/inittab /etc/inittab
+else
+ echo "you can start the graphical login as root using 'init 4'"
+ echo "or a desktop session as a normal user with 'startx'"
+fi