X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=lib%2Fsystem%2Fsystem.h;h=2389951f7b8ee7c98723df41f7283c603c306782;hp=a7a1a120c3142756bd05b644b509a446890b707e;hb=c8afffc32546c3cd72d5d229081211b8e9efe9ee;hpb=c20a0460f3c9057aa920949414f8c3bd6529f927 diff --git a/lib/system/system.h b/lib/system/system.h index a7a1a12..2389951 100644 --- a/lib/system/system.h +++ b/lib/system/system.h @@ -13,13 +13,28 @@ struct pb_system_apps { const char *wget; const char *ip; const char *udhcpc; + const char *udhcpc6; + const char *vgscan; + const char *vgchange; + const char *pb_plugin; + const char *pb_exec; + const char *sh; + const char *scsi_rescan; + const char *dmidecode; }; extern const struct pb_system_apps pb_system_apps; +enum tftp_type { + TFTP_TYPE_BUSYBOX, + TFTP_TYPE_HPA, + TFTP_TYPE_UNKNOWN, + TFTP_TYPE_BROKEN, +}; + +extern enum tftp_type tftp_type; + int pb_run_cmd(const char *const *cmd_argv, int wait, int dry_run); -int pb_run_cmd_pipe(const char *const *cmd_argv, int wait, int dry_run, - void *ctx, char **buf, int *buf_len); int pb_mkdir_recursive(const char *dir); int pb_rmdir_recursive(const char *base, const char *dir);