Advertisement
Guest User

Untitled

a guest
Sep 19th, 2012
5,189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.38 KB | None | 0 0
  1. #!/bin/bash -e
  2.  
  3. # This script is for controlling OSX v5.7.4 tftpserver
  4.  
  5. case "$1" in
  6. 'start')
  7.   launchctl load -F /System/Library/LaunchDaemons/tftp.plist
  8.   launchctl start com.apple.tftpd
  9.   echo "tftpserver started..."
  10.   ;;
  11. 'stop')
  12.   launchctl stop com.apple.tftpd
  13.   launchctl unload -F /System/Library/LaunchDaemons/tftp.plist
  14.   echo "tftpserver stopped..."
  15.   ;;
  16. esac
  17. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement