From cec7fdc374bd9cb3e349c6dc2ee96170b892cd0a Mon Sep 17 00:00:00 2001 From: Dmitri Popov Date: Wed, 28 Mar 2018 09:45:23 +0200 Subject: [PATCH] Fix path. Minor tweaks --- rc/rc.py | 2 +- rc/rc.tpl | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/rc/rc.py b/rc/rc.py index 7eff520..e7761ac 100755 --- a/rc/rc.py +++ b/rc/rc.py @@ -19,7 +19,7 @@ import os @route('/') @route('/', method='POST') def remote_control(): - st = os.statvfs("/home/dmpop") + st = os.statvfs("/home") free = "%.2f" % float((st.f_bavail * st.f_frsize)/1.073741824e9) if (request.POST.get("cardbackup")): os.system("sudo /home/pi/little-backup-box/scripts/card-backup.sh") diff --git a/rc/rc.tpl b/rc/rc.tpl index 664428b..2e378d6 100644 --- a/rc/rc.tpl +++ b/rc/rc.tpl @@ -39,12 +39,13 @@

Free disk space: {{freespace}} GB

-

+

Back up a storage card connected via a card reader

-

+

Transfer files directly from the connected camera

-

+

Back up files from the internal storage to an external storage device

-

+

Shut down the Little Backup Box

+