On 04/21/16 at 03:44pm, Xunlei Pang wrote:
+
+ # Delete duplicated lines
+ if [ -f "$_dnsfile" ]; then
+ awk '!a[$0]++' $_dnsfile > $_dnsfile.tmp
Hi.
Maybe storing the temporary file to ${initdir}/tmp/ is better. You can
refer to function kdump_install_conf.
Thanks
Minfei