mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-23 17:34:00 +03:00
f4d74c6105
Documentation is licensed under LGPL-2.1-or-later. Scripts are MIT to facilitate reuse. Examples are relicensed to CC0-1.0 to maximise copy-and-paste for users, with permission from authors.
12 lines
319 B
Bash
12 lines
319 B
Bash
#!/bin/sh -eu
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
test -e /etc/os-release && os_release='/etc/os-release' || os_release='/usr/lib/os-release'
|
|
. "${os_release}"
|
|
|
|
echo "Running on ${PRETTY_NAME:-Linux}"
|
|
|
|
if [ "${ID:-linux}" = "debian" ] || [ "${ID_LIKE#*debian*}" != "${ID_LIKE}" ]; then
|
|
echo "Looks like Debian!"
|
|
fi
|