Created
January 20, 2017 19:33
-
-
Save dangh/de66e47ebc08fd0b62e1f47389eff03d to your computer and use it in GitHub Desktop.
start OSX built-in TFTP server in fish shell
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
function tftpd | |
switch $argv | |
case start | |
sudo rm -rf /private/tftpboot | |
sudo ln -s (pwd) /private/tftpboot | |
sudo launchctl load -w /System/Library/LaunchDaemons/tftp.plist | |
case stop | |
sudo launchctl unload -w /System/Library/LaunchDaemons/tftp.plist | |
end | |
end |
Author
dangh
commented
Jan 20, 2017
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment