Remove hard-coded paths to system tools available in $PATH

Since at least a44daf2 both run() and run_interactive() can access all
system tools in _PATH_STDPATH.  A system that uses non-standard paths,
e.g. /system/bin and /apps/bin, should update _PATH_STDPATH.

For reference, see issue #69 and PRs #70 and #72.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2017-07-03 13:18:42 +02:00
1 parent 9c6e046d93
commit 6f61e8e915
5 files changed
+14 -14

No files matched your search

+2 -2
View File
@@ -31,14 +31,14 @@ static void save(void *arg)
{
_d("Saving system clock to RTC ...");
/* -w,--systohc, -u,--utc */
run_interactive("/sbin/hwclock -w -u", "Saving system time (UTC) to RTC");
run_interactive("hwclock -w -u", "Saving system time (UTC) to RTC");
}
static void restore(void *arg)
{
_d("Restoring system clock from RTC ...");
/* -s,--hctosys, -u,--utc */
run_interactive("/sbin/hwclock -s -u", "Restoring system clock (UTC) from RTC");
run_interactive("hwclock -s -u", "Restoring system clock (UTC) from RTC");
}
static plugin_t plugin = {