summaryrefslogtreecommitdiffstats
path: root/lib/system/system.h
blob: e7a2c68ac91cf0430e5d08713b28a41283fa6a76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#if !defined(_PB_LIB_SYSTEM_H)
#define _PB_LIB_SYSTEM_H

struct pb_system_apps {
	const char *prefix;
	const char *cp;
	const char *kexec;
	const char *mount;
	const char *shutdown;
	const char *sftp;
	const char *tftp;
	const char *udevadm;
	const char *umount;
	const char *wget;
};

extern const struct pb_system_apps pb_system_apps;

int pb_run_cmd(const char *const *cmd_argv, int wait, int dry_run);
int pb_mkdir_recursive(const char *dir);
int pb_rmdir_recursive(const char *base, const char *dir);

#endif
OpenPOWER on IntegriCloud