Skip to content

Commit ddf511a

Browse files
committed
rearranging the menu items
1 parent 83936e9 commit ddf511a

File tree

2 files changed

+22
-13
lines changed

2 files changed

+22
-13
lines changed

meta-ov/recipes-apps/ovmenu-ng-skripts/ovmenu-ng-skripts_0.1.bb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ SRC_URI = "\
2323
file://update-system.sh \
2424
file://download-igc.sh \
2525
file://transfer-xcsoar.sh \
26+
file://system-info.sh \
2627
file://ov-calibrate-ts.sh \
2728
"
2829

@@ -41,12 +42,14 @@ do_install() {
4142
${S}/update-system.sh \
4243
${S}/download-igc.sh \
4344
${S}/transfer-xcsoar.sh \
45+
${S}/system-info.sh \
4446
${S}/ov-calibrate-ts.sh \
4547
${D}${bindir}/
4648
cd ${D}${bindir}
4749
ln -s -r transfer-xcsoar.sh restore-system.sh
4850
ln -s -r transfer-xcsoar.sh restore-xcsoar.sh
4951
ln -s -r transfer-xcsoar.sh backup-system.sh
52+
ln -s -r transfer-xcsoar.sh upload-xcsoar.sh
5053
}
5154

5255
FILES:${PN} = " \

meta-ov/recipes-apps/ovmenu-ng/files/ovmenu-ng.sh

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,24 @@ function submenu_file() {
4444
--title "[ F I L E ]" \
4545
--begin 3 4 \
4646
--menu "You can use the UP/DOWN arrow keys" 15 50 4 \
47-
Download_IGC "Download IGC files to USB" \
48-
Download "Backup XCSoar and OV settings" \
49-
Upload "Restore XCSoar and OV settings" \
50-
Upload_XCSoar "Restore only XCSoar settings" \
47+
Download_IGC "Download XCSoar IGC files to USB" \
48+
Update_Maps "Update Maps" \
49+
Upload_XCSoar "Update or upload XCSoar files" \
50+
Backup "Backup XCSoar and OV settings" \
51+
Restore "Restore XCSoar and OV settings" \
52+
Restore_XCSoar "Restore only XCSoar settings" \
5153
Back "Back to Main" 2>"${INPUT}"
5254

5355
menuitem=$(<"${INPUT}")
5456

5557
# make decsion
5658
case $menuitem in
5759
Download_IGC) download_igc_files;;
58-
Download) download_files;;
59-
Upload) upload_files;;
60+
Update_Maps) update_maps_files;;
6061
Upload_XCSoar) upload_xcsoar_files;;
62+
Backup) backup_files;;
63+
Restore) restore_files;;
64+
Restore_XCSoar) restore_xcsoar_files;;
6165
Exit) ;;
6266
esac
6367
}
@@ -69,7 +73,6 @@ function submenu_system() {
6973
--begin 3 4 \
7074
--menu "You can use the UP/DOWN arrow keys" 15 50 6 \
7175
Update_System "Update system software" \
72-
Update_Maps "Update Maps files" \
7376
Calibrate_Sensors "Calibrate Sensors" \
7477
Calibrate_Touch "Calibrate Touch" \
7578
Settings "System Settings" \
@@ -83,9 +86,6 @@ function submenu_system() {
8386
Update_System)
8487
update_system
8588
;;
86-
Update_Maps)
87-
update_maps
88-
;;
8989
Calibrate_Sensors)
9090
calibrate_sensors
9191
;;
@@ -337,19 +337,25 @@ function download_igc_files() {
337337
}
338338

339339
# Copy XCSaor and OpenVario settings to /usb/usbstick/openvario/backup/<MAC address of eth0>
340-
function download_files() {
340+
function backup_files() {
341341
/usr/bin/backup-system.sh >> /tmp/tail.$$ &
342342
dialog --backtitle "OpenVario" --title "Result" --tailbox /tmp/tail.$$ 30 50
343343
}
344344

345+
# Copy usb/usbstick/openvario/upload/xcsoar to /home/root/.xcsoar
346+
function upload_xcsoar() {
347+
/usr/bin/upload-xcsoar.sh >> /tmp/tail.$$ &
348+
dialog --backtitle "OpenVario" --title "Result" --tailbox /tmp/tail.$$ 30 50
349+
}
350+
345351
# Copy XCSaor and OpenVario settings from /usb/usbstick/openvario/backup/<MAC address of eth0>
346-
function upload_files(){
352+
function restore_files(){
347353
/usr/bin/restore-system.sh >> /tmp/tail.$$ &
348354
dialog --backtitle "OpenVario" --title "Result" --tailbox /tmp/tail.$$ 30 50
349355
}
350356

351357
# Copy /usb/usbstick/openvario/backup/<MAC address of eth0>/home/root/.xcsoar to /home/root/.xcsoar
352-
function upload_xcsoar_files(){
358+
function restore_xcsoar_files(){
353359
/usr/bin/restore-xcsoar.sh >> /tmp/tail.$$ &
354360
dialog --backtitle "OpenVario" --title "Result" --tailbox /tmp/tail.$$ 30 50
355361
}

0 commit comments

Comments
 (0)