diff options
Diffstat (limited to 'packages/nslu2-binary-only/unslung-rootfs-2.3r63/unsling')
-rwxr-xr-x | packages/nslu2-binary-only/unslung-rootfs-2.3r63/unsling | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/nslu2-binary-only/unslung-rootfs-2.3r63/unsling b/packages/nslu2-binary-only/unslung-rootfs-2.3r63/unsling index bda65a01ce..51fa7ed871 100755 --- a/packages/nslu2-binary-only/unslung-rootfs-2.3r63/unsling +++ b/packages/nslu2-binary-only/unslung-rootfs-2.3r63/unsling @@ -137,7 +137,12 @@ if [ "$nopw" = 0 ] ; then exit 1 fi cp /etc/passwd /usr/local/passwd - cp /etc/passwd $targconf/passwd +# cp /etc/passwd $targconf/passwd + grep "^root:" /etc/passwd >$targconf/passwd.new + grep -v "^root:" $targconf/passwd >>$targconf/passwd.new + mv $targconf/passwd $targconf/passwd.save + mv $targconf/passwd.new $targconf/passwd + chmod 644 $targconf/passwd fi # Start at the root directory |