};
static const char short_options[] = "hl:V";
static const struct opts default_values = {
- .log_file = "pb-discover.log",
+ .log_file = "/var/log/petitboot/pb-discover.log",
};
*opts = default_values;
static void print_version(void)
{
- printf("pb-cui (" PACKAGE_NAME ") " PACKAGE_VERSION "\n");
+ printf("petitboot-nc (" PACKAGE_NAME ") " PACKAGE_VERSION "\n");
}
static void print_usage(void)
{
print_version();
printf(
-"Usage: pb-cui [-h, --help] [-l, --log log-file] [-V, --version]\n");
+"Usage: petitboot-nc [-h, --help] [-l, --log log-file] [-V, --version]\n");
}
/**
};
static const char short_options[] = "hl:V";
static const struct opts default_values = {
- .log_file = "pb-cui.log",
+ .log_file = "/var/log/petitboot/petitboot-nc.log",
};
*opts = default_values;
pb_log_always_flush(1);
#endif
- pb_log("--- pb-cui ---\n");
+ pb_log("--- petitboot-nc ---\n");
sa.sa_handler = sig_handler;
result = sigaction(SIGALRM, &sa, NULL);
};
static const char short_options[] = "hl:trV";
static const struct opts default_values = {
- .log_file = "pb-cui.log",
+ .log_file = "/var/log/petitboot/petitboot-nc.log",
};
*opts = default_values;
pb_log_always_flush(1);
#endif
- pb_log("--- pb-twin ---\n");
+ pb_log("--- petitboot-twin ---\n");
sa.sa_handler = sig_handler;
result = sigaction(SIGALRM, &sa, NULL);
void pbt_print_version(void)
{
- printf("pb-twin (" PACKAGE_NAME ") " PACKAGE_VERSION "\n");
+ printf("petitboot-twin (" PACKAGE_NAME ") " PACKAGE_VERSION "\n");
}
void pbt_print_usage(void)
{
pbt_print_version();
printf(
-"Usage: pb-twin [-h, --help] [-l, --log log-file] [-r, --reset-defaults]\n"
-" [-t, --timeout] [-V, --version] [[-f --fbdev] | [-x --x11]]\n");
+"Usage: petitboot-twin [-h, --help] [-l, --log log-file]\n"
+" [-r, --reset-defaults][-t, --timeout] [-V, --version]"
+" [[-f --fbdev] | [-x --x11]]\n");
}
/**
static const char short_options[] = "fhl:trVx";
static const struct pbt_opts default_values = {
.backend = pbt_twin_x11,
- .log_file = "pb-twin.log",
+ .log_file = "/var/log/petitboot/petitboot-twin.log",
};
*opts = default_values;
#
PBOOT_USER_EVENT_SOCKET="/tmp/petitboot.ev"
-log="pb-udhcpc.log"
+log="/var/log/petitboot/pb-udhcpc.log"
pb_add () {
k_server_ip=${rootpath%%:*}