Created
September 19, 2012 04:59
-
-
Save caryp/3747760 to your computer and use it in GitHub Desktop.
This script is for controlling OSX v5.7.4 tftpserver
This file contains hidden or 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