summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/install.sh2
-rw-r--r--src/main.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/install.sh b/src/install.sh
index 41c217f..ab2977b 100644
--- a/src/install.sh
+++ b/src/install.sh
@@ -294,7 +294,7 @@ install_get_pkgs()
done <"${root}/$(profile_opkg_state_dir \
)/info/${pkg}.conffiles"
fi
- printf 'Installed-Time: %d\n\n' $(time) >&${status_fd}
+ printf 'Installed-Time: %d\n\n' $(unixtime) >&${status_fd}
rm -f -- "${root}/${fname}"
done
diff --git a/src/main.sh b/src/main.sh
index 0f850e0..aa9b3d4 100644
--- a/src/main.sh
+++ b/src/main.sh
@@ -34,7 +34,7 @@ else
builddir=''
fi
-time()
+unixtime()
{
# Based on code from <https://www.etalabs.net/sh_tricks.html> by Rich
# Felker, with whitespace added for readability.
@@ -79,7 +79,7 @@ main()
shift 1
fi
- srand $((${$} + $(time)))
+ srand $((${$} + $(unixtime)))
if ! init_vardata; then
return 2
fi