Browse Source

Piotr Esden-Tempski <pe1724@bingo-ev.de>:

stone should fall back to text mode when no dialog is present ...


git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@1115 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Piotr Esden-Tempski 21 years ago
parent
commit
0303c968c9
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      package/base/sysfiles/stone.sh

+ 5
- 1
package/base/sysfiles/stone.sh

@ -23,7 +23,11 @@
# --- ROCK-COPYRIGHT-NOTE-END --- # --- ROCK-COPYRIGHT-NOTE-END ---
export SETUPD="${SETUPD:-/etc/stone.d}" export SETUPD="${SETUPD:-/etc/stone.d}"
export SETUPG="${SETUPG:-dialog}"
if which dialog > /dev/null ; then
export SETUPG="${SETUPG:-dialog}"
else
export SETUPG="${SETUPG:-text}"
fi
export STONE="`type -p $0`" export STONE="`type -p $0`"
if [ "$1" = "-text" ] ; then SETUPG="text" ; shift ; fi if [ "$1" = "-text" ] ; then SETUPG="text" ; shift ; fi

Loading…
Cancel
Save