diff options
author | P. 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) |
commit | 37273e45adb1caf9c84ceb550261c354393b3cd8 (patch) | |
tree | 5a9f82f4fa8a488ccf4cf6e8d636514d99cd4449 | |
parent | 59290f954d2976ad0b83dbe7212028890edeb6e9 (diff) |
miniprokit.sh: Write /etc/passwd on dev.
-rwxr-xr-x | miniprokit.sh | 2 |
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" |