diff options
Diffstat (limited to 'miniprokit.sh')
-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" |