Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Connect() no longer needed

Due to a change in the interface naming scheme as of the latest
release of systemd there's no longer a safe way to detect interface
names thus rendering this code deprecated.

Automatic dialup code has been removed as of this commit and we no
longer check if an active interface exists, lget/lin will just
timeout if there is no internet connectivity.
  • Loading branch information...
commit 3a7b7797b3c0d7aecdae266015ec534ea713600f 1 parent 93d2f2a
Stefan Wold authored
Showing with 0 additions and 81 deletions.
  1. +0 −79 libs/connect.lunar
  2. +0 −1  libs/download.lunar
  3. +0 −1  prog/lvu
79 libs/connect.lunar
View
@@ -1,79 +0,0 @@
-#!/bin/bash
-############################################################
-# #
-# download.lunar - get sources from the net #
-# #
-############################################################
-# leach is part of the sorcery spell management utility #
-# Copyright 2001 by Kyle Sallee #
-############################################################
-# #
-# this WAS the leach script of a source based Linux distro,#
-# calls Sorcerer GNU/Linux, or SGL. SGL is no longer #
-# available with GPL license. Since this script was taken #
-# before licensing scheme change, no legal problems I #
-# guess. #
-# #
-# the code is re-written for Lunar. The previous Copyright #
-# notices are kept; just in case some code is left :=) #
-# Kagan Kongar <kongar@tsrsb.org.tr>, 20020519 #
-# #
-# This secondly was lget mostly, and has been moved into #
-# a separate lunar functions file handling all the generic #
-# downloading functionality for lunar #
-# #
-############################################################
-# #
-# Parts Copyrighted Jason Johnston 2002 under GPLv2 #
-# #
-# Parts Copyrighted Kagan Kongar 2002 under GPLv2 #
-# #
-# Parts Copyrighted Auke Kok 2002 under GPLv2 #
-# #
-############################################################
-
-
-connect() {
- local TIMEOUT
- debug_msg "connect ($@)"
-
- if ! ip link | egrep -q '^[0-9]*: (eth|wlan|ppp|ath|tun|ra|usb|br)[0-9]+[^>]*[<,]UP[,>]'
- then
- pon
-
- # Timeout in deciseconds to wait for Interface to come up.
- TIMEOUT=30
-
- until ip link | egrep -q '^[0-9]*: (eth|wlan|ppp|ath|tun|ra|usb|br)[0-9]+[^>]*[<,]UP[,>]' || [ $TIMEOUT == 0 ]
- do
- sleep 10
- (( TIMEOUT-- ))
- done
- disconnect
-
- fi
-
-}
-
-
-disconnect() {
- debug_msg "disconnect ($@)"
- if ps -C disconnect > /dev/null
- then return
- fi
-
- rm -f $TMPDIR/disconnect
- cat << EOF > $TMPDIR/disconnect
-#!/bin/sh
-
-while ps -A | grep -q "lget"; do sleep 120; done
-poff
-rm -f $TMPDIR/disconnect
-EOF
-
-chmod a+x $TMPDIR/disconnect
- $TMPDIR/disconnect &
-
-}
-
-
1  libs/download.lunar
View
@@ -37,7 +37,6 @@ download_url() {
local RETVAL
debug_msg "download_url($@)"
verbose_msg "trying to download \"${2}\" from \"${1}\""
- connect &&
plugin_call SOURCE_DOWNLOAD $1 $2 $3
return $?
}
1  prog/lvu
View
@@ -812,7 +812,6 @@ show_urls() { (
echo $URL$2
return 1
}
- connect() { return 0 ; }
LRESORT_URL=
FRESORT_URL=
Please sign in to comment.
Something went wrong with that request. Please try again.