From: Hugo Villeneuve Date: Wed, 6 Aug 2014 04:32:17 +0000 (-0400) Subject: Fix error with stty command in shell scripts X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=916a41ee00eb2b18560f5ebdcf196182faa24b9d;p=hvlinux.git Fix error with stty command in shell scripts command: stty size Error message: stty: standard input: Inappropriate ioctl for device --- 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