mirror of
https://github.com/brain-hackers/brain-config.git
synced 2024-12-22 20:20:06 +09:00
Use an empty string rather than a message...
This commit is contained in:
parent
fde0346b60
commit
0645185f28
@ -2098,14 +2098,14 @@ get_vnc_resolution() {
|
|||||||
if [ -e /etc/xdg/autostart/vnc_xrandr.desktop ] ; then
|
if [ -e /etc/xdg/autostart/vnc_xrandr.desktop ] ; then
|
||||||
echo $(grep fb /etc/xdg/autostart/vnc_xrandr.desktop | cut -f 15 -d ' ')
|
echo $(grep fb /etc/xdg/autostart/vnc_xrandr.desktop | cut -f 15 -d ' ')
|
||||||
else
|
else
|
||||||
echo "not set"
|
echo ""
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
do_vnc_resolution() {
|
do_vnc_resolution() {
|
||||||
if [ "$INTERACTIVE" = True ]; then
|
if [ "$INTERACTIVE" = True ]; then
|
||||||
CUR=$(get_vnc_resolution)
|
CUR=$(get_vnc_resolution)
|
||||||
if [ "$CUR" = "not set" ] ; then
|
if [ "$CUR" = "" ] ; then
|
||||||
CUR=640x480
|
CUR=640x480
|
||||||
fi
|
fi
|
||||||
FUN=$(whiptail --title "Raspberry Pi Software Configuration Tool (raspi-config)" --default-item $CUR --menu "Set VNC Resolution" $WT_HEIGHT $WT_WIDTH $WT_MENU_HEIGHT --cancel-button Back --ok-button Select \
|
FUN=$(whiptail --title "Raspberry Pi Software Configuration Tool (raspi-config)" --default-item $CUR --menu "Set VNC Resolution" $WT_HEIGHT $WT_WIDTH $WT_MENU_HEIGHT --cancel-button Back --ok-button Select \
|
||||||
|
Loading…
Reference in New Issue
Block a user