summaryrefslogtreecommitdiff
path: root/backend/modules/partmgr
blob: 942f6cd4bdb6e223900319ddae076d271e355b34 (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
#!/bin/bash

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