mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
(cosmetics) scripts/image: do not create unused dist specific files in /etc
This commit is contained in:
parent
b9284db4a3
commit
0d8bb0d800
@ -87,14 +87,7 @@ fi
|
||||
ln -s lib $INSTALL/usr/lib64
|
||||
fi
|
||||
|
||||
echo "$DISTRONAME" > $INSTALL/etc/distribution
|
||||
echo "$PROJECT.$TARGET_ARCH" > $INSTALL/etc/arch
|
||||
echo "$OPENELEC_VERSION" > $INSTALL/etc/version
|
||||
echo "$TARGET_VERSION" > $INSTALL/etc/release
|
||||
echo "$DISTRONAME ($([ "$OFFICIAL" = "yes" ] && echo "official" || echo "unofficial")) - Version: $OPENELEC_VERSION" > $INSTALL/etc/openelec-release
|
||||
if [ -n "$GIT_HASH" ]; then
|
||||
echo "$GIT_HASH" >> $INSTALL/etc/gitrev
|
||||
fi
|
||||
|
||||
# create /etc/os-release
|
||||
echo -e "NAME=\"$DISTRONAME\"" > $INSTALL/etc/os-release
|
||||
@ -114,12 +107,6 @@ fi
|
||||
echo -e "OPENELEC_BUILD=\"unofficial\"" >> $INSTALL/etc/os-release
|
||||
fi
|
||||
|
||||
if [ "$OFFICIAL" = "yes" ]; then
|
||||
echo "official" > $INSTALL/etc/build
|
||||
else
|
||||
echo "unofficial" > $INSTALL/etc/build
|
||||
fi
|
||||
|
||||
# create /etc/issue
|
||||
echo $GREETING0 > $INSTALL/etc/issue
|
||||
echo $GREETING1 >> $INSTALL/etc/issue
|
||||
|
Loading…
x
Reference in New Issue
Block a user