Changes in debian/config [25dfb16:19a8088]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
debian/config
r25dfb16 r19a8088 2 2 3 3 . /usr/share/debconf/confmodule 4 [ -f /etc/default/bitlbee ] && . /etc/default/bitlbee5 4 6 5 db_title BitlBee 7 6 8 if [ -n "$BITLBEE_PORT" ]; then 9 db_set bitlbee/serveport "$BITLBEE_PORT" 10 else 11 db_get bitlbee/serveport 12 if [ "$RET" = "stillhavetoask" ]; then 13 listens=$(netstat -ltn | awk '{print $4}') 14 for port in 6667 6666 6668 6669; do 15 if [ $(expr "$listens " : ".*:$port\s") = "0" ]; then 16 break 17 fi 18 done 19 db_set bitlbee/serveport $port; 7 db_get bitlbee/serveport 8 if [ "$RET" = "stillhavetoask" ]; then 9 if netstat -ltn | grep ':6667' 2> /dev/null > /dev/null; then 10 port=6668; 11 else 12 port=6667; 20 13 fi 14 db_set bitlbee/serveport $port; 21 15 fi 22 16
Note: See TracChangeset
for help on using the changeset viewer.