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

+