From e099603ca8749a9bdd176144366d32b51e072c1c Mon Sep 17 00:00:00 2001 From: Eric Warnke Date: Wed, 26 Oct 2016 09:59:22 -0400 Subject: [PATCH] stty is more compatible and does not require any additional dependancies for busybox --- automated install/basic-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index e8b7bc02..cd4895d5 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -33,8 +33,8 @@ IPv4_address="" IPv6_address="" # Find the rows and columns -rows=$(tput lines) -columns=$(tput cols) +rows=$(stty size | awk '{print $1}') +columns=$(stty size | awk '{print $2}') # Divide by two so the dialogs take up half of the screen, which looks nice. r=$(( rows / 2 ))