openssh: do not touch /etc/services
git-svn-id: svn://svn.openwrt.org/openwrt/packages@26149 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
a1c680489a
commit
d744948309
@ -178,11 +178,6 @@ if [ -z "$$(grep ^\\$${name}: $${IPKG_INSTROOT}/etc/passwd)" ]; then
|
|||||||
echo "adding user $$name to /etc/passwd"
|
echo "adding user $$name to /etc/passwd"
|
||||||
echo "$${name}:x:$${id}:$${id}:$${name}:/var/empty/.$${name}:/bin/false" >> $${IPKG_INSTROOT}/etc/passwd
|
echo "$${name}:x:$${id}:$${id}:$${name}:/var/empty/.$${name}:/bin/false" >> $${IPKG_INSTROOT}/etc/passwd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
grep -q '^ssh[[:space:]]*22/tcp' $${IPKG_INSTROOT}/etc/services 2>/dev/null
|
|
||||||
if [ $$? -ne 0 ]; then
|
|
||||||
echo "ssh 22/tcp" >>$${IPKG_INSTROOT}/etc/services
|
|
||||||
fi
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/openssh-sftp-client/install
|
define Package/openssh-sftp-client/install
|
||||||
|
Loading…
x
Reference in New Issue
Block a user