vp-build/common/wrappers/uname.sh
Enno Boland 5a2a63645f common/wrappers: add date and uname wrappers.
uname:
  overwrites the hostname in command uname with the string 'void'.
date:
  uses the timestamp read from SOURCE_DATE_EPOCH as date.
2016-03-03 11:34:07 +01:00

6 lines
115 B
Bash

#!/bin/sh
uname=$(/usr/bin/uname $@)
rv=$?
echo "$uname" | sed "s/\(^\| \)$(/usr/bin/uname -n)\($\| \)/\1void\2/"