1 # Detect the type of system we're running on
3 # This makes it easy to adjust script locations and so forth to match
4 # your system's file placement and other quirks.
6 if test -z "${OS}"; then
8 _OS="$(source /etc/os-release && echo "${ID}")"
11 elif grep -i sunos /etc/motd > /dev/null 2>&1; then
14 echo "unknown system. Adjust .bashrc.d/01detect_system or set OS by hand" >&2