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 0bc7093800cdcef83366650e57860628e43a9ba
commit 0bc7093800cdcef83366650e57860628e43a9bab
Author: floriangit <90066055+floriangit@users.noreply.github.com>
Date:   Sun Feb 15 13:28:53 2026 +0100

    fix check for root line
    
    https://github.com/ghaerr/elks/pull/1638
    
    was a mistake and actually throws an error:
    # sudo ./slattach.sh
    ./slattach.sh: 6: [[: not found
    
    This fixes it (on bash and ksh).
---
 slattach.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/slattach.sh b/slattach.sh
index 4d222565..ff58c737 100755
--- a/slattach.sh
+++ b/slattach.sh
@@ -3,7 +3,7 @@
 # run "net start slip" on ELKS after running this script as root
 #
 
-if [[ $(id -u) != 0 ]];
+if [ "$(id -un)" != "root" ];
 then
 	echo "Please run me as root."
 	exit 1