From 916a41ee00eb2b18560f5ebdcf196182faa24b9d Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Wed, 6 Aug 2014 00:32:17 -0400 Subject: [PATCH] Fix error with stty command in shell scripts command: stty size Error message: stty: standard input: Inappropriate ioctl for device --- stage1/bootscripts/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stage1/bootscripts/functions b/stage1/bootscripts/functions index 4a436e0..90d0c03 100644 --- a/stage1/bootscripts/functions +++ b/stage1/bootscripts/functions @@ -14,7 +14,7 @@ export PATH="/tools/bin:/tools/sbin:/bin:/sbin" ## Screen Dimensions # Find current screen size if [ -z "${COLUMNS}" ]; then - COLUMNS=$(stty size) + COLUMNS=$(stty size < /dev/console) COLUMNS=${COLUMNS##* } fi -- 2.20.1