SHARE
TWEET

Untitled

a guest Sep 19th, 2012 4,948 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top