projects
/
hvlinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
207e6a6
)
Fix error with stty command in shell scripts
author
Hugo Villeneuve
<hugo@hugovil.com>
Wed, 6 Aug 2014 04:32:17 +0000
(
00:32
-0400)
committer
Hugo Villeneuve
<hugo@hugovil.com>
Sat, 16 Aug 2014 00:43:53 +0000
(20:43 -0400)
command:
stty size
Error message:
stty: standard input: Inappropriate ioctl for device
stage1/bootscripts/functions
patch
|
blob
|
history
diff --git
a/stage1/bootscripts/functions
b/stage1/bootscripts/functions
index
4a436e0
..
90d0c03
100644
(file)
--- 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