summaryrefslogtreecommitdiff
path: root/backend/modules/partmgr
blob: 281667da234eabfae2de93986904d3fa2a924a2a (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 gparted qtparted fdisk cfdisk
        do
                which $app &>/dev/null || continue
		echo $app
	done
}