Skip to content

Instantly share code, notes, and snippets.

@perks
Created April 24, 2015 04:34
Show Gist options
  • Save perks/868339c72b87ffff1152 to your computer and use it in GitHub Desktop.
Save perks/868339c72b87ffff1152 to your computer and use it in GitHub Desktop.
#!/bin/bash -e
# This script is for controlling OSX v5.7.4 tftpserver
case "$1" in
'start')
launchctl load -F /System/Library/LaunchDaemons/tftp.plist
launchctl start com.apple.tftpd
echo "tftpserver started..."
;;
'stop')
launchctl stop com.apple.tftpd
launchctl unload -F /System/Library/LaunchDaemons/tftp.plist
echo "tftpserver stopped..."
;;
esac
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment