Files
recycled-ni-neutrino/data/scripts/restore_flash.sh
vanhofen a86bc779b4 NI \o/
Origin commit data
------------------
Branch: ni/coolstream
Commit: d6b3754c6f
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-05-19 (Thu, 19 May 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
2016-05-19 22:59:54 +02:00

16 lines
266 B
Bash

#!/bin/sh
. /etc/init.d/globals
BAKF="/var/backup_flash.tar.gz"
if [ -e ${BAKF} ]; then
SHOWINFO "restore settings from ${BAKF} ..."
cd / && tar -xzf "${BAKF}"
sync
rm -rf "${BAKF}"
SHOWINFO "done."
else
SHOWINFO "${BAKF} not found. nothing to restore!"
fi