elks-enhanced

publicRead
Owner: themasterBranch: masterCommits: 6893Updated: 2026-04-19 00:15
Git CLI clone URL
git clone https://www.xt-emporium.com/git/elks-enhanced.git
Fullscreen desktop URL

Commit diff

Commit ef8fdd48c058fdf0afa672924bee70457312379
commit ef8fdd48c058fdf0afa672924bee704573123799
Author: floriangit <90066055+floriangit@users.noreply.github.com>
Date:   Sun Feb 8 11:44:23 2026 +0100

    Update sys
    
    - fix positioning of the "Installing" prompt when providing more than one parameter to this script
    - enhance the prompt by adding the version to be installed
    - enhance the prompt with a confirmation
---
 elkscmd/rootfs_template/bin/sys | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/elkscmd/rootfs_template/bin/sys b/elkscmd/rootfs_template/bin/sys
index 5ebebc65..4cb0d3ad 100755
--- a/elkscmd/rootfs_template/bin/sys
+++ b/elkscmd/rootfs_template/bin/sys
@@ -128,7 +128,6 @@ copy_etc_files()
 }
 
 # sys script starts here
-echo "Installing/updating ELKS on $1"
 MNT=/tmp/mnt
 small=0
 arg=-s
@@ -137,6 +136,10 @@ if test "$1" = "-F"; then shift; arg="-F -s"; fi
 if test "$1" = "-3"; then shift; small=1; fi
 if test "$#" -lt 1; then usage; fi
 
+echo "Installing/updating `grep ELKS /etc/issue` on $1. Continue (y/n)?"
+read confirm
+if test "$confirm" != "y"; then exit 0; fi;
+
 # returns fstype, 1=MINIX, 2=FAT
 set +e
 makeboot $arg $1