- done
- ) > $hfile
- if [ $PLC_DNS_ENABLED -eq 1 ] ; then
- target=/etc/plc_hosts
- sort -u $hfile > $target
- else
- target=/etc/hosts
- cat /etc/hosts >> $hfile
- echo "#generated by /etc/plc.d/network" >/etc/hosts
- echo "127.0.0.1 localhost.localdomain localhost" >>/etc/hosts
- sort -u $hfile >> /etc/hosts
- fi
- chmod +r $target
+ fi
+ done > $hfile
+ echo "#generated by /etc/plc.d/network" >/etc/hosts
+ echo "127.0.0.1 localhost.localdomain localhost" >> /etc/hosts
+ sort -u $hfile >> /etc/hosts
+ chmod +r /etc/hosts