From ea8fed553d4aaf1e91ccee11059e569e80f77775 Mon Sep 17 00:00:00 2001 From: David Spencer Date: Wed, 9 Aug 2017 22:55:45 +0100 Subject: network/hostsblock: Fixed doinst.sh. Signed-off-by: David Spencer --- network/hostsblock/doinst.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'network') diff --git a/network/hostsblock/doinst.sh b/network/hostsblock/doinst.sh index 1cdd2c6ca5..e711ca2966 100644 --- a/network/hostsblock/doinst.sh +++ b/network/hostsblock/doinst.sh @@ -14,6 +14,6 @@ config() { config etc/hostsblock/rc.conf.new # backup existing /etc/hosts to /etc/hostsblock/hosts.head if it doesn't already exist -if [ ! -r /etc/hostsblock/hosts.head ] ; then - cp /etc/hosts /etc/hostsblock/hosts.head +if [ ! -r etc/hostsblock/hosts.head ] ; then + cp etc/hosts etc/hostsblock/hosts.head fi -- cgit v1.2.3