mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-04 20:13:17 +00:00
stty is more compatible and does not require any additional dependancies for busybox
This commit is contained in:
parent
877ebb3d56
commit
e099603ca8
1 changed files with 2 additions and 2 deletions
|
@ -33,8 +33,8 @@ IPv4_address=""
|
||||||
IPv6_address=""
|
IPv6_address=""
|
||||||
|
|
||||||
# Find the rows and columns
|
# Find the rows and columns
|
||||||
rows=$(tput lines)
|
rows=$(stty size | awk '{print $1}')
|
||||||
columns=$(tput cols)
|
columns=$(stty size | awk '{print $2}')
|
||||||
|
|
||||||
# Divide by two so the dialogs take up half of the screen, which looks nice.
|
# Divide by two so the dialogs take up half of the screen, which looks nice.
|
||||||
r=$(( rows / 2 ))
|
r=$(( rows / 2 ))
|
||||||
|
|
Loading…
Reference in a new issue