summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-06-14 17:22:00 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-06-14 17:22:00 (EDT)
commit37273e45adb1caf9c84ceb550261c354393b3cd8 (patch)
tree5a9f82f4fa8a488ccf4cf6e8d636514d99cd4449
parent59290f954d2976ad0b83dbe7212028890edeb6e9 (diff)
miniprokit.sh: Write /etc/passwd on dev.
-rwxr-xr-xminiprokit.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/miniprokit.sh b/miniprokit.sh
index 30d3cea..27bcd3a 100755
--- a/miniprokit.sh
+++ b/miniprokit.sh
@@ -295,6 +295,8 @@ configure()
'opkg install $(opkg list-installed | cut -d " " -f 1)'
[ -r /etc/resolv.conf ] && cp /etc/resolv.conf "${root}/etc"
[ -r /etc/hostname ] && cp /etc/hostname "${root}/etc"
+ [ -e "${root}/etc/passwd" ] || printf \
+ 'root::0:0:root:/root:/bin/sh\n' >"${root}/etc/passwd"
else
printf '%s' "${INSTALL_SERVICE}" >"${root}/etc/rc.d/S10install"
chmod 0755 "${root}/etc/rc.d/S10install"