X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=petitboot-paths.h;fp=petitboot-paths.h;h=114d0b22b2a37bf4f185538ea3d67c7fc54afb18;hb=db8001f511f8e8d928aa82113431067f968f4966;hp=0000000000000000000000000000000000000000;hpb=49d43d590027df23d45d3cd99f83517eeab67a43;p=petitboot diff --git a/petitboot-paths.h b/petitboot-paths.h new file mode 100644 index 0000000..114d0b2 --- /dev/null +++ b/petitboot-paths.h @@ -0,0 +1,23 @@ +#ifndef _PATHS_H +#define _PATHS_H + +#ifndef PREFIX +#define PREFIX "/usr" +#endif + +#ifndef PKG_SHARE_DIR +#define PKG_SHARE_DIR PREFIX "/share/petitboot" +#endif + +#ifndef TMP_DIR +#define TMP_DIR "/var/tmp" +#endif + +#define PBOOT_DEVICE_SOCKET "/var/tmp/petitboot-dev" +#define MOUNT_BIN "/bin/mount" +#define UMOUNT_BIN "/bin/umount" + +/* at present, all default artwork strings are const. */ +#define artwork_pathname(s) (PKG_SHARE_DIR "/artwork/" s) + +#endif /* _PATHS_H */