Untitled
public text v1 · immutable#!/bin/sh
# chkconfig: - 55 25
# description: Wrapper to start sshd bound to multiple IPs
IP="eth0 eth1"
if [ -f /etc/vservices/sshd.conf ] ; then
. /etc/vservices/sshd.conf
fi
IPC=`for n in $IP; do echo "--ip $n"; done`
exec /usr/sbin/chbind $IPC /etc/init.d/sshd $*