summaryrefslogtreecommitdiff
path: root/backend/modules/partmgr
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2011-03-17 05:07:10 +0100
committerAndreas Loibl <andreas@andreas-loibl.de>2011-03-17 05:07:10 +0100
commit00286a5db286e21a766b6af057052dc5d17561ad (patch)
tree7232dadf6dc3570705c3104fe0c000f480c7a0ee /backend/modules/partmgr
downloadacritoxinstaller-00286a5db286e21a766b6af057052dc5d17561ad.zip
acritoxinstaller-00286a5db286e21a766b6af057052dc5d17561ad.tar.gz
Initial commit
Diffstat (limited to 'backend/modules/partmgr')
-rw-r--r--backend/modules/partmgr24
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
+}
+