File: preinst

package info (click to toggle)
setsccserial 0.1-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 92 kB
  • ctags: 42
  • sloc: ansic: 331; makefile: 57; sh: 10
file content (20 lines) | stat: -rw-r--r-- 532 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

# Check that this is an Atari before installation, on other machines
# setSCCserial is useless
if [ ! -f /proc/version ]; then
	echo "No /proc filesystem -- can't check for Atari"
else
	# the grep also fails if there's no /proc/hardware at all, which is the
	# case on non-m68k machines and m68k's that are not Amiga or Atari
	if ! grep '^Model:[ 	]*Atari' /proc/hardware >/dev/null 2>&1; then
		echo "The setSCCserial tool is meant for Atari machines only -- not installing"
		exit 1
	fi
fi

#DEBHELPER#

exit 0