1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-28 22:20:18 +02:00
openwrt-xburst/obsolete-buildroot/sources/openwrt/ipkg/openssh/openssh.server.preinst
mbm 1dfdb01703 restructure; cleanup
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@120 3c298f89-4303-0410-b956-a3cf2f4a3e73
2004-07-31 07:30:57 +00:00

11 lines
415 B
Bash

#!/bin/sh
# Make sure password and group databases exist
if [ ! -f /etc/passwd ]; then
echo -e "root::0:0::/tmp:/bin/sh\nnobody:x:65534:65534:nobody:/tmp:/bin/sh\nsshd:x:100:65534:sshd:/var:/bin/false\n" > /etc/passwd
[ -f /etc/group ] || echo -e "root:x:0:\nnogroup:x:65534:\n" > /etc/group
echo "\n\nNOTICE: SSH requires proper root password to be configured, set it now."
passwd
fi