Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement