mirror of
https://github.com/rozniak/xfce-winxp-tc.git
synced 2026-05-01 11:41:30 +00:00
44 lines
572 B
Bash
Executable File
44 lines
572 B
Bash
Executable File
#!/bin/bash
|
|
|
|
#
|
|
# distid.sh - Identify Distro
|
|
#
|
|
# This source-code is part of Windows XP stuff for XFCE:
|
|
# <<https://www.oddmatics.uk>>
|
|
#
|
|
# Author(s): Rory Fewell <roryf@oddmatics.uk>
|
|
#
|
|
|
|
#
|
|
# MAIN SCRIPT
|
|
#
|
|
|
|
# Probe for package managers to try and determine what distro we're
|
|
# on
|
|
#
|
|
|
|
# Check Debian
|
|
#
|
|
which dpkg >/dev/null 2>&1
|
|
|
|
if [[ $? -eq 0 ]]
|
|
then
|
|
echo -n "deb"
|
|
exit 0
|
|
fi
|
|
|
|
# Check Arch Linux
|
|
#
|
|
which pacman >/dev/null 2>&1
|
|
|
|
if [[ $? -eq 0 ]]
|
|
then
|
|
echo -n "archpkg"
|
|
exit 0
|
|
fi
|
|
|
|
# Nothing else to probe, it's over!
|
|
#
|
|
echo "Unsupported distribution."
|
|
exit 1
|