From 4c8e2839949be4603fbb8fb9e7a7e536e59c1dc4 Mon Sep 17 00:00:00 2001 From: Elijah Saxon Date: Mon, 4 Jul 2005 06:39:00 +0000 Subject: created ninjahelper --- handlers/sys.helper | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 handlers/sys.helper (limited to 'handlers/sys.helper') diff --git a/handlers/sys.helper b/handlers/sys.helper new file mode 100644 index 0000000..22eb01d --- /dev/null +++ b/handlers/sys.helper @@ -0,0 +1,31 @@ + +sys_wizard() { + require_packages hwinfo + checkBox "new sys action" "check options" \ + "packages" "list of all installed packages." on \ + "partitions" "the partition table of all disks." on \ + "hardware" "detailed hardware information" on + [ $? = 1 ] && return; + result="$REPLY" + packages="packages = off" + partitions="partitions = off" + hardware="hardware = off" + for opt in $result; do + case $opt in + '"packages"') packages="packages = on";; + '"partitions"') partitions="partitions = on";; + '"hardware"') hardware="hardware = on";; + esac + done + get_next_filename $configdirectory/10.sys + cat > $next_filename <