summaryrefslogtreecommitdiff
path: root/backend/modules/partmgr
blob: 618406b1795d7f4ba581ba3466d504278c3f47d0 (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
25
26
#!/bin/bash

function run_partmgr()
{
	case "$1" in
	cfdisk|fdisk)
		get_root
		TERM=xterm /sbin/"$1" "$2"
		;;
	gparted|qtparted)
		get_root X
		"$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
}