From dddb128e0a8470df0384cde61b682186cfd6bdf6 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 7 Mar 2016 17:37:47 +0000 Subject: [PATCH] Selectively restore local files --- src/freedombone-controlpanel | 70 ++++++++++++++++++------------------ 1 file changed, 36 insertions(+), 34 deletions(-) diff --git a/src/freedombone-controlpanel b/src/freedombone-controlpanel index 45fe614d..0c120868 100755 --- a/src/freedombone-controlpanel +++ b/src/freedombone-controlpanel @@ -954,23 +954,24 @@ function restore_from_usb { 11 $"IPFS" off \ 12 $"SSH keys" off \ 13 $"User configuration files" off \ - 14 $"User fin files" off \ - 15 $"SSL/TLS certificates" off \ - 16 $"Personal settings" off \ - 17 $"Mailing List" off \ - 18 $"XMPP chat" off \ - 19 $"GNU Social" off \ - 20 $"Hubzilla" off \ - 21 $"Owncloud" off \ - 22 $"Gogs" off \ - 23 $"Wiki" off \ - 24 $"Blog" off \ - 25 $"CJDNS" off \ - 26 $"Email" off \ - 27 $"DLNA" off \ - 28 $"VoIP" off \ - 29 $"RSS reader" off \ - 30 $"Tox" off 2> $data + 14 $"User local files" off \ + 15 $"User fin files" off \ + 16 $"SSL/TLS certificates" off \ + 17 $"Personal settings" off \ + 18 $"Mailing List" off \ + 19 $"XMPP chat" off \ + 20 $"GNU Social" off \ + 21 $"Hubzilla" off \ + 22 $"Owncloud" off \ + 23 $"Gogs" off \ + 24 $"Wiki" off \ + 25 $"Blog" off \ + 26 $"CJDNS" off \ + 27 $"Email" off \ + 28 $"DLNA" off \ + 29 $"VoIP" off \ + 30 $"RSS reader" off \ + 31 $"Tox" off 2> $data sel=$? case $sel in 1) break;; @@ -990,23 +991,24 @@ function restore_from_usb { 11) ${PROJECT_NAME}-restore-local $USB_DRIVE ipfs;; 12) ${PROJECT_NAME}-restore-local $USB_DRIVE ssh;; 13) ${PROJECT_NAME}-restore-local $USB_DRIVE userconfig;; - 14) ${PROJECT_NAME}-restore-local $USB_DRIVE userfin;; - 15) ${PROJECT_NAME}-restore-local $USB_DRIVE certs;; - 16) ${PROJECT_NAME}-restore-local $USB_DRIVE personal;; - 17) ${PROJECT_NAME}-restore-local $USB_DRIVE mailinglist;; - 18) ${PROJECT_NAME}-restore-local $USB_DRIVE xmpp;; - 19) ${PROJECT_NAME}-restore-local $USB_DRIVE gnusocial;; - 20) ${PROJECT_NAME}-restore-local $USB_DRIVE hubzilla;; - 21) ${PROJECT_NAME}-restore-local $USB_DRIVE owncloud;; - 22) ${PROJECT_NAME}-restore-local $USB_DRIVE gogs;; - 23) ${PROJECT_NAME}-restore-local $USB_DRIVE wiki;; - 24) ${PROJECT_NAME}-restore-local $USB_DRIVE blog;; - 25) ${PROJECT_NAME}-restore-local $USB_DRIVE cjdns;; - 26) ${PROJECT_NAME}-restore-local $USB_DRIVE email;; - 27) ${PROJECT_NAME}-restore-local $USB_DRIVE dlna;; - 28) ${PROJECT_NAME}-restore-local $USB_DRIVE voip;; - 29) ${PROJECT_NAME}-restore-local $USB_DRIVE ttrss;; - 30) ${PROJECT_NAME}-restore-local $USB_DRIVE tox;; + 14) ${PROJECT_NAME}-restore-local $USB_DRIVE userlocal;; + 15) ${PROJECT_NAME}-restore-local $USB_DRIVE userfin;; + 16) ${PROJECT_NAME}-restore-local $USB_DRIVE certs;; + 17) ${PROJECT_NAME}-restore-local $USB_DRIVE personal;; + 18) ${PROJECT_NAME}-restore-local $USB_DRIVE mailinglist;; + 19) ${PROJECT_NAME}-restore-local $USB_DRIVE xmpp;; + 20) ${PROJECT_NAME}-restore-local $USB_DRIVE gnusocial;; + 21) ${PROJECT_NAME}-restore-local $USB_DRIVE hubzilla;; + 22) ${PROJECT_NAME}-restore-local $USB_DRIVE owncloud;; + 23) ${PROJECT_NAME}-restore-local $USB_DRIVE gogs;; + 24) ${PROJECT_NAME}-restore-local $USB_DRIVE wiki;; + 25) ${PROJECT_NAME}-restore-local $USB_DRIVE blog;; + 26) ${PROJECT_NAME}-restore-local $USB_DRIVE cjdns;; + 27) ${PROJECT_NAME}-restore-local $USB_DRIVE email;; + 28) ${PROJECT_NAME}-restore-local $USB_DRIVE dlna;; + 29) ${PROJECT_NAME}-restore-local $USB_DRIVE voip;; + 20) ${PROJECT_NAME}-restore-local $USB_DRIVE ttrss;; + 31) ${PROJECT_NAME}-restore-local $USB_DRIVE tox;; esac done any_key