mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 22:26:42 +00:00
busybox: createlog: no githash stored in /etc/issue
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
This commit is contained in:
parent
462b767ce4
commit
787b30b24b
@ -10,7 +10,6 @@ DATE=$(date -u +%Y-%m-%d-%H.%M.%S)
|
|||||||
BASEDIR=$(mktemp -d)
|
BASEDIR=$(mktemp -d)
|
||||||
LOGDIR="log-$DATE"
|
LOGDIR="log-$DATE"
|
||||||
RELEASE=$(cat /etc/release)
|
RELEASE=$(cat /etc/release)
|
||||||
GIT=$(grep git < /etc/issue)
|
|
||||||
|
|
||||||
getlog_cmd() {
|
getlog_cmd() {
|
||||||
if command -v $1 >/dev/null; then
|
if command -v $1 >/dev/null; then
|
||||||
@ -18,7 +17,6 @@ getlog_cmd() {
|
|||||||
echo "################################################################################"
|
echo "################################################################################"
|
||||||
echo "# ... output of $@"
|
echo "# ... output of $@"
|
||||||
echo "# LibreELEC release: $RELEASE"
|
echo "# LibreELEC release: $RELEASE"
|
||||||
echo "# $GIT"
|
|
||||||
echo "################################################################################"
|
echo "################################################################################"
|
||||||
} >> $BASEDIR/$LOGDIR/$LOGFILE
|
} >> $BASEDIR/$LOGDIR/$LOGFILE
|
||||||
$@ >> $BASEDIR/$LOGDIR/$LOGFILE 2>/dev/null
|
$@ >> $BASEDIR/$LOGDIR/$LOGFILE 2>/dev/null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user