Skip to content

Instantly share code, notes, and snippets.

@tuklusan
Last active July 4, 2022 23:25
Show Gist options
  • Save tuklusan/d8e9598f99b1aec0f10106bdde8107a8 to your computer and use it in GitHub Desktop.
Save tuklusan/d8e9598f99b1aec0f10106bdde8107a8 to your computer and use it in GitHub Desktop.
Install sheep_net.ko kernel module and sheep_net device for SheepShaver Power Macintosh G4 emulator for Classic Mac OS 9 emulation and connect over AppleTalk using Netatalk: See http://bit.ly/MacOS9-SheepShaver
#!/bin/bash
#
# install-sheep-net.sh
#
# Installs sheep_net.ko kernel module and creates sheep_net
# device for use by SheepShaver emulation on classic Power Macintosh G4
# build-sheepshaver.sh and build-sheep-net.sh should have been run previously
#
# Needs sudo root access
#
# ---
# Supratim Sanyal
# Details: http://bit.ly/MacOS9-SheepShaver
# ---
# Check if sheep_net kernel module is already loaded
if [ `lsmod | grep -o ^sheep_net` ]; then
echo "sheep_net kernel module is already present"
exit 0
fi
# Check if running as root
if [ "$EUID" -ne 0 ]; then
echo "Must run as root - try again with sudo!"
exit 0
fi
#insmod ~/sheepshaver.build/macemu/BasiliskII/src/Unix/Linux/NetDriver/sheep_net.ko
insmod /home/macos/sheepshaver.run/sheep_net.ko
depmod
chown macos:macos /dev/sheep_net
date
ls -l /dev/sheep_net
lsmod | grep sheep_net
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment