From 37273e45adb1caf9c84ceb550261c354393b3cd8 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 14 Jun 2014 17:22:00 -0400 Subject: miniprokit.sh: Write /etc/passwd on dev. --- 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" -- cgit v0.9.1