package/dropbear: Fix symlink only if pointing to the right directory
authorPaul Cercueil <paul@crapouillou.net>
Tue, 28 Jul 2015 08:21:31 +0000 (10:21 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 30 Jul 2015 21:36:02 +0000 (23:36 +0200)
commit6dc5c7ffea3c309e3402e6c1e4cab42b8b44f421
tree48e9bd874d3e25e437d88de478f13bcebc2ca3af
parent2d0a5e5cea8986d753fcde79102d475eca9c0275
package/dropbear: Fix symlink only if pointing to the right directory

This commit ensures that the /etc/dropbear symlink won't be removed if
it points elsewhere than /var/run/dropbear.

[Thomas:
 - fix indentation / too long lines as suggested by Yann E. Morin.]

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/dropbear/S50dropbear
package/dropbear/dropbear.service