1 # -*- mode: sh; sh-basic-offset: 3; indent-tabs-mode: nil; -*-
2 HELPERS="$HELPERS sys:general_hardware_and_system_info"
5 require_packages hwinfo
6 checkBox "new sys action" "check options" \
7 "packages" "list of all installed packages." on \
8 "partitions" "the partition table of all disks." on \
9 "hardware" "detailed hardware information" on
12 packages="packages = no"
13 partitions="partitions = no"
14 hardware="hardware = no"
15 for opt in $result; do
17 '"packages"') packages="packages = yes";;
18 '"partitions"') partitions="partitions = yes";;
19 '"hardware"') hardware="hardware = yes";;
22 get_next_filename $configdirectory/10.sys
23 cat > $next_filename <<EOF
27 # packagesfile = /var/backups/dpkg-selections.txt
28 # partitionsfile = /var/backups/partitions.__star__.txt
29 # hardwarefile = /var/backups/hardware.txt
31 chmod 600 $next_filename