Skip to content

Commit

Permalink
make Pi broadcast out new hostname, fixes #74
Browse files Browse the repository at this point in the history
Pi does not need to be restarted to broadcast out hostname, see #74 for more info
  • Loading branch information
davidferguson authored Dec 29, 2017
1 parent 7381101 commit b3dc05a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sethostname/sethostname.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

raspi-config nonint do_hostname "$1"
hostname -b "$1"
systemctl restart avahi-daemon

0 comments on commit b3dc05a

Please sign in to comment.