summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2014-03-20 01:22:53 (EDT)
committer P. J. McDermott <pjm@nac.net>2014-03-20 01:22:53 (EDT)
commit9ff1723dca0a766ca361f74953110919106b685c (patch)
tree06259f8f3fe4d7faeee4c41b3975c850f111f6bd
parent1c6c9e1b29863d96ede3e5f5a754197e6c19225d (diff)
miniprokit.sh: Copy /etc/{resolv.conf,hostname}.
-rwxr-xr-xminiprokit.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/miniprokit.sh b/miniprokit.sh
index 2b3bf62..e7773ec 100755
--- a/miniprokit.sh
+++ b/miniprokit.sh
@@ -199,6 +199,9 @@ cmd_install()
$(cat "${root}/var/lib/opkg/lists/trunk_"*)
EOF
+
+ [ -r /etc/resolv.conf ] && cp /etc/resolv.conf "${root}/etc"
+ [ -r /etc/hostname ] && cp /etc/hostname "${root}/etc"
}
get_pkg()