diff options
Diffstat (limited to 'scripts/naskpass.pre')
-rwxr-xr-x | scripts/naskpass.pre | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/scripts/naskpass.pre b/scripts/naskpass.pre index 8b3ab0e..4eb6d3b 100755 --- a/scripts/naskpass.pre +++ b/scripts/naskpass.pre @@ -8,33 +8,8 @@ if [ "x${PRINTK}" != "x" ] && [ -r ${PRINTK} ] && [ -w ${PRINTK} ]; then cat ${PRINTK} >${OLDPRINTK} echo "0 0 0 0" >${PRINTK} fi -sleep 0.2 - -echo -n 'waiting for ip ' -CURWAIT=$MAXWAIT if [ -x /sbin/sshd ]; then - -if [ "x${NASK_DEV}" != "x" ] && [ "x${NASK_MAC}" != "x" ]; then - ifconfig ${NASK_DEV} hw ether ${NASK_MAC} -fi - -if [ "x${NASK_DEV}" != "x" ] && [ "x${NASK_IP}" != "x" ]; then - ifconfig ${NASK_DEV} ${NASK_IP} -else - [ -x /bin/ipconfig ] && configure_networking & -fi - -while ! $(ifconfig -a | grep -qoE 'inet addr:'); do - echo -n '.' - if [ $CURWAIT -le 0 ]; then - echo ' got no ip, continue anyway.' - break - fi - CURWAIT=$(expr $CURWAIT - 1) - sleep 0.5 -done -echo +[ -x /bin/ipconfig ] && configure_networking >/dev/null 2>/dev/null & /sbin/sshd fi - |