Skip to content

Instantly share code, notes, and snippets.

@chriswayg
Created September 12, 2019 07:27
Show Gist options
  • Save chriswayg/630f8cce5f1ac73e9a3fdd82c01a7886 to your computer and use it in GitHub Desktop.
Save chriswayg/630f8cce5f1ac73e9a3fdd82c01a7886 to your computer and use it in GitHub Desktop.
Display a list of file sets which have been installed by the OpenBSD installer
#!/bin/sh
set -e
# This script displays a list file sets which have been installed by the OpenBSD installer.
# It only checks one typical file per file set, as well as checking for the (renamed) bsd.mp kernel.
printf "\nInstalled OpenBSD file sets:\n"
[[ -f /bsd.sp ]] && printf "[X] bsd\n"
[[ -f /bsd ]] && [[ -f /bsd.mp ]] && printf "[X] bsd\n"
[[ -f /bsd.mp ]] && printf "[X] bsd.mp\n"
[[ -f /bsd ]] && [[ -f /bsd.sp ]] && printf "[X] bsd.mp\n"
[[ -f /bsd.rd ]] && printf "[X] bsd.rd\n"
[[ -f /sbin/dmesg ]] && printf "[X] base65\n"
[[ -f /usr/bin/g++ ]] && printf "[X] comp65\n"
[[ -f /usr/games/worm ]] && printf "[X] game65\n"
[[ -f /usr/share/man/man5/fstab.5 ]] && printf "[X] man65\n"
[[ -f /usr/X11R6/bin/xhost ]] && printf "[X] xbase65\n"
[[ -f /usr/X11R6/lib/X11/fonts/100dpi/courR12.pcf.gz ]] && printf "[X] xfont65\n"
[[ -f /usr/X11R6/bin/Xorg ]] && printf "[X] xserv65\n"
[[ -f /usr/X11R6/bin/x11perfcomp ]] && printf "[X] xshare65\n"
# License: ISC Copyright 2019 Christian Wagner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment