Lines 173-179
stop() {
Link Here
|
173 |
|
173 |
|
174 |
retval=0 |
174 |
retval=0 |
175 |
if [ -t 0 ]; then |
175 |
if [ -t 0 ]; then |
176 |
if type fgconsole >/dev/null 2>&1; then |
176 |
if command -v fgconsole >/dev/null 2>&1; then |
177 |
curvt=$(fgconsole 2>/dev/null) |
177 |
curvt=$(fgconsole 2>/dev/null) |
178 |
else |
178 |
else |
179 |
curvt=$(tty) |
179 |
curvt=$(tty) |
Lines 202-208
stop() {
Link Here
|
202 |
|
202 |
|
203 |
# switch back to original vt |
203 |
# switch back to original vt |
204 |
if [ -n "${curvt}" ]; then |
204 |
if [ -n "${curvt}" ]; then |
205 |
if type chvt >/dev/null 2>&1; then |
205 |
if command -v chvt >/dev/null 2>&1; then |
206 |
chvt "${curvt}" |
206 |
chvt "${curvt}" |
207 |
else |
207 |
else |
208 |
vidcontrol -s "$((curvt + 1))" |
208 |
vidcontrol -s "$((curvt + 1))" |