Browse Source

Set the avahi hostname when making an image

Bob Mottram 9 years ago
parent
commit
0dfa5a608f
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/freedombone-image-customise

+ 2
- 0
src/freedombone-image-customise View File

@@ -343,6 +343,8 @@ chroot "$rootdir" apt-get install -y avahi-daemon avahi-utils avahi-discover ava
343 343
 chroot "$rootdir" apt-get install -y iptables dnsutils net-tools network-manager iputils-ping
344 344
 chroot "$rootdir" apt-get install -y libnss-mdns libnss-myhostname libnss-gw-name nano man ntp
345 345
 
346
+sed -i "s|#host-name=.*|host-name=${PROJECT_NAME}|g" $rootdir/etc/avahi/avahi-daemon.conf
347
+
346 348
 chroot "$rootdir" /bin/bash -x <<EOF
347 349
 git clone https://github.com/bashrc/freedombone /root/freedombone
348 350
 cd /root/freedombone