diff options
author | Micah Anderson <micah@riseup.net> | 2013-09-20 16:36:09 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2013-09-20 16:48:13 -0400 |
commit | 54ec07be55b8bc151983e9648c4bdf3e0f7baa34 (patch) | |
tree | 432bc454c14b40ec114a48d7c978911fe78b3d98 /handlers/sys.helper.in | |
parent | 373c6bcced00b8b61e4eadae99c5d4f8ec6439b2 (diff) | |
download | backupninja-54ec07be55b8bc151983e9648c4bdf3e0f7baa34.tar.gz backupninja-54ec07be55b8bc151983e9648c4bdf3e0f7baa34.tar.bz2 |
add additional sys backup options to provide the ability to backup the MBR for every device found, and to backup the BIOS (if the flashrom program is installed, and the mainboard is supported)
Diffstat (limited to 'handlers/sys.helper.in')
-rw-r--r-- | handlers/sys.helper.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/handlers/sys.helper.in b/handlers/sys.helper.in index 8a2fb07..7272f48 100644 --- a/handlers/sys.helper.in +++ b/handlers/sys.helper.in @@ -20,6 +20,8 @@ sys_wizard() { hardware="hardware = no" luksheaders="luksheaders = no" lvm="lvm = no" + mbr="mbr = no" + bios="bios = no" for opt in $result; do case $opt in '"packages"') packages="packages = yes";; @@ -28,6 +30,8 @@ sys_wizard() { '"hardware"') hardware="hardware = yes";; '"luksheaders"') luksheaders="luksheaders = yes";; '"lvm"') lvm="lvm = yes";; + '"mbr"') mbr="mbr = yes";; + '"bios"') bios="bios = yes";; esac done get_next_filename $configdirectory/10.sys @@ -38,6 +42,8 @@ $sfdisk $hardware $luksheaders $lvm +$mbr +$bios # packagesfile = /var/backups/dpkg-selections.txt # selectionsfile = /var/backups/debconfsel.txt |