summaryrefslogtreecommitdiff
path: root/backend/modules/partmgr
blob: c773e8dbe965a8a96e9e8d97d033667b19779f88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
}