
# Try to generate a lsb-release file unless one exists
if [ ! -f /etc/lsb-release ]; then
  DRELEASE=$(awk '{ print $3 }' /etc/lunar.release | sed -r 's;\-(i.86|x86_64)$;;')
  DCNAME=$(sed 's;.*(\(.*\) -.*;\1;' /etc/lunar.release)
  DDESC=$(cat /etc/lunar.release)
cat >/etc/lsb-release<<EOF
DISTRIB_ID="Lunar Linux"
DISTRIB_RELEASE="$DRELEASE"
DISTRIB_CODENAME="$DCNAME"
DISTRIB_DESCRIPTION="$DDESC"
EOF
fi
