No interactive configuration of bludit
This commit is contained in:
parent
91e68c8796
commit
bdd063a7dc
|
@ -93,35 +93,6 @@ function reconfigure_bludit {
|
|||
echo -n ''
|
||||
}
|
||||
|
||||
function configure_interactive_bludit {
|
||||
while true
|
||||
do
|
||||
data=$(mktemp 2>/dev/null)
|
||||
dialog --backtitle $"Freedombone Control Panel" \
|
||||
--title $"bludit" \
|
||||
--radiolist $"Choose an operation:" 16 70 3 \
|
||||
1 $"Option 1" off \
|
||||
2 $"Option 2" off \
|
||||
3 $"Exit" on 2> "$data"
|
||||
sel=$?
|
||||
case $sel in
|
||||
1) rm -f "$data"
|
||||
return;;
|
||||
255) rm -f "$data"
|
||||
return;;
|
||||
esac
|
||||
case $(cat "$data") in
|
||||
1) # call some function for option 1
|
||||
;;
|
||||
2) # call some function for option 2
|
||||
;;
|
||||
3) rm -f "$data"
|
||||
break;;
|
||||
esac
|
||||
rm -f "$data"
|
||||
done
|
||||
}
|
||||
|
||||
function upgrade_bludit {
|
||||
CURR_BLUDIT_COMMIT=$(get_completion_param "bludit commit")
|
||||
if [[ "$CURR_BLUDIT_COMMIT" == "$BLUDIT_COMMIT" ]]; then
|
||||
|
|
Loading…
Reference in New Issue