File: detect.sh

package info (click to toggle)
debootstick 2.8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 296 kB
  • sloc: sh: 1,364; makefile: 34
file content (10 lines) | stat: -rwxr-xr-x 130 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
fs_tree=$1

. "$fs_tree/etc/os-release"
if [ "$ID" = "raspbian" ]
then
    exit 0  # OK
fi

exit 1  # not such a system