|
@@ -93,35 +93,6 @@ function reconfigure_bludit {
|
93
|
93
|
echo -n ''
|
94
|
94
|
}
|
95
|
95
|
|
96
|
|
-function configure_interactive_bludit {
|
97
|
|
- while true
|
98
|
|
- do
|
99
|
|
- data=$(mktemp 2>/dev/null)
|
100
|
|
- dialog --backtitle $"Freedombone Control Panel" \
|
101
|
|
- --title $"bludit" \
|
102
|
|
- --radiolist $"Choose an operation:" 16 70 3 \
|
103
|
|
- 1 $"Option 1" off \
|
104
|
|
- 2 $"Option 2" off \
|
105
|
|
- 3 $"Exit" on 2> "$data"
|
106
|
|
- sel=$?
|
107
|
|
- case $sel in
|
108
|
|
- 1) rm -f "$data"
|
109
|
|
- return;;
|
110
|
|
- 255) rm -f "$data"
|
111
|
|
- return;;
|
112
|
|
- esac
|
113
|
|
- case $(cat "$data") in
|
114
|
|
- 1) # call some function for option 1
|
115
|
|
- ;;
|
116
|
|
- 2) # call some function for option 2
|
117
|
|
- ;;
|
118
|
|
- 3) rm -f "$data"
|
119
|
|
- break;;
|
120
|
|
- esac
|
121
|
|
- rm -f "$data"
|
122
|
|
- done
|
123
|
|
-}
|
124
|
|
-
|
125
|
96
|
function upgrade_bludit {
|
126
|
97
|
CURR_BLUDIT_COMMIT=$(get_completion_param "bludit commit")
|
127
|
98
|
if [[ "$CURR_BLUDIT_COMMIT" == "$BLUDIT_COMMIT" ]]; then
|