Skip to content

Instantly share code, notes, and snippets.

@caryp
Created September 19, 2012 04:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caryp/3747760 to your computer and use it in GitHub Desktop.
Save caryp/3747760 to your computer and use it in GitHub Desktop.
This script is for controlling OSX v5.7.4 tftpserver
#!/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