Created
April 24, 2015 04:34
-
-
Save perks/868339c72b87ffff1152 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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