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
 chroot "$rootdir" apt-get install -y iptables dnsutils net-tools network-manager iputils-ping
343
 chroot "$rootdir" apt-get install -y iptables dnsutils net-tools network-manager iputils-ping
344
 chroot "$rootdir" apt-get install -y libnss-mdns libnss-myhostname libnss-gw-name nano man ntp
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
 chroot "$rootdir" /bin/bash -x <<EOF
348
 chroot "$rootdir" /bin/bash -x <<EOF
347
 git clone https://github.com/bashrc/freedombone /root/freedombone
349
 git clone https://github.com/bashrc/freedombone /root/freedombone
348
 cd /root/freedombone
350
 cd /root/freedombone