diff options
Diffstat (limited to 'backend/modules/partmgr')
-rw-r--r-- | backend/modules/partmgr | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/backend/modules/partmgr b/backend/modules/partmgr new file mode 100644 index 0000000..c773e8d --- /dev/null +++ b/backend/modules/partmgr @@ -0,0 +1,24 @@ +#!/bin/bash + +function run_partmgr() +{ + case "$1" in + cfdisk|fdisk) + TERM=xterm /sbin/"$1" "$2" + ;; + gparted|qtparted) + "$1" "$2" + ;; + esac +} + +function send_partition_managers() +{ + send data partition_managers + for app in cfdisk gparted qtparted fdisk + do + which $app &>/dev/null || continue + echo $app + done +} + |