Post Reply 
 
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[HOWTO] Using QNAP TS-221 as PXE server / iscsi target.
2013-10-08, 15:10
Post: #3
RE: [HOWTO] Using QNAP TS-221 as PXE server / iscsi target.
for people that use the qnap without static ip you can adapt the dnsmasq startup script "/opt/etc/init.d/S56dnsmasq" from:
Code:
#!/bin/sh

if [ -f /var/run/dnsmasq.pid ] ; then
  kill `cat /var/run/dnsmasq.pid`
fi

rm -f /var/run/dnsmasq.pid

sleep 2
/opt/sbin/dnsmasq

to:

Code:
#!/bin/sh

if [ -f /var/run/dnsmasq.pid ] ; then
  kill `cat /var/run/dnsmasq.pid`
fi

rm -f /var/run/dnsmasq.pid

/bin/sed -i "/^dhcp-boot=/c\dhcp-boot=net:ipxe,http://$(grep -s IPADDR /etc/dhcpc/dhcpcd-eth0.info | sed 's/IPADDR=//g')/go.ipxe" /opt/etc/dnsmasq.conf

sleep 2
/opt/sbin/dnsmasq
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [HOWTO] Using QNAP TS-221 as PXE server / iscsi target. - jrsmile - 2013-10-08 15:10



User(s) browsing this thread: 1 Guest(s)