浏览代码

Set the avahi hostname when making an image

Bob Mottram 9 年前
父节点
当前提交
0dfa5a608f
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      src/freedombone-image-customise

+ 2
- 0
src/freedombone-image-customise 查看文件

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