Browse Source

dropbear: added sample config file for dropbear

0.2-maint
Alejandro Mery 14 years ago
parent
commit
df134da8ba
1 changed files with 29 additions and 0 deletions
  1. +29
    -0
      pkgs/dropbear/etc_conf_dropbear.sample.txt

+ 29
- 0
pkgs/dropbear/etc_conf_dropbear.sample.txt

@ -0,0 +1,29 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: target/sheba/pkgs/dropbear/etc_conf_dropbear.sample.txt
# Copyright (C) 2010 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
addresses() {
ip -o addr 2> /dev/null |
grep -v -e '^.: lo ' -e ' secondary ' |
sed -ne 's,.* inet \([^ /]\+\)/.*,\1,p'
}
DROPBEAR_LISTEN=
for x in $(addresses); do
case "$x" in
10.*) DROPBEAR_LISTEN="$DROPBEAR_LISTEN $x:22" ;;
*) DROPBEAR_LISTEN="$DROPBEAR_LISTEN $x:2200" ;;
esac
done
DROPBEAR_PASSWD=no

Loading…
Cancel
Save