diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2018-02-19 23:37:52 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2018-02-19 23:37:52 +0300 |
commit | 59b9ef19e80411d98bff4bbd2f791fa1dae39e64 (patch) | |
tree | f2bc2d1a5e6539ea3fdfdf1e19d8f7a5c1829b48 /mods | |
parent | e7bb56b084cd27b80ceec15ce71cbbd1ccfd5446 (diff) |
Credits update. Didn't i forgot anybody?
Diffstat (limited to 'mods')
-rw-r--r-- | mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/p0000_version | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/p0000_version b/mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/p0000_version new file mode 100644 index 00000000..bc2e34a6 --- /dev/null +++ b/mods/mod_hakchi/hakchi/rootfs/etc/preinit.d/p0000_version @@ -0,0 +1,18 @@ +createVersionFile(){ + [ -d "$mountpoint/var" ] || return 1 + local vfile="$mountpoint/var/version" + local hakchiVersion="[master]v1.0.3-110(7f31082)" + local kernelVersion="$(uname -r)" + [ -z "$bootVersion" ] && local bootVersion="v1.0.0" + echo "# $(uname -a)" > "$vfile" + set | grep -F Version | sort >> "$vfile" +} + +loadVersionFile(){ + [ -d "$mountpoint/var" ] || return 1 + local vfile="$mountpoint/var/version" + [ -f "$vfile" ] || return 1 + source "$vfile" +} + +createVersionFile |