]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
now running tnlup/tnldown tunel is possible
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 29 Jul 1999 13:59:37 +0000 (13:59 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 29 Jul 1999 13:59:37 +0000 (13:59 +0000)
svn-id: @451

TODO
sysconfig/network-scripts/tnldown
sysconfig/network-scripts/tnlup

diff --git a/TODO b/TODO
index 7170e1eb86a9cdbc5809acd16bdb647854710061..5316e0539e1415b8a3dde09ac895e03c32cbb210 100644 (file)
--- a/TODO
+++ b/TODO
@@ -2,11 +2,9 @@
 
 - nie wszyscy maj± zainstalowan± quote
 
-- dlaczego nie mo¿na wykonaæ `tnlup cron` tylko trzeba `tnlup tnlcfg-cron` ?
-
 - o ile to mo¿liwe usun±æ u¿ywanie awk i sed zastêpowaæ u¿yewaniem sh lub
   przynajmeniej zastêpowaæ awka sedem
 
 - dodaæ mo¿liwo¶æ ustawiania statycznej tablicy arp (patrz: man ethers arp
   opcja -f). Najpawdopodobniej najlepszym miescem bêdzie punkt miê
-  podnoszeniem lo a nastepnych interfejsów.
\ No newline at end of file
+  podnoszeniem lo a nastepnych interfejsów.
index 6917a716e63e269d97697c0698fdfe784eeee0c9..40f06b36df81cf049723d55a94881b5fba743c40 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-#      $Id: tnldown,v 1.3 1999/07/13 12:49:37 misiek Exp $
+#      $Id: tnldown,v 1.4 1999/07/29 13:59:37 misiek Exp $
 #
 # Author: Arkadiusz Mi¶kiewicz <misiek@pld.org.pl>
 #
@@ -14,6 +14,18 @@ cd /etc/sysconfig/network-scripts
 . /etc/sysconfig/network
 
 CONFIG=$1
+
+[ -z "$CONFIG" ] && {
+    echo "usage: tnldown <device name>" >&2
+    exit 1
+}
+
+[ -f "/etc/sysconfig/interfaces/$CONFIG" ] || CONFIG=tnlcfg-$CONFIG
+[ -f "/etc/sysconfig/interfaces/$CONFIG" ] || {
+    echo "usage: tnldown <device name>" >&2
+    exit 1
+}
+
 source_config
 
 if [ "foo$2" = "fooboot" -a "${ONBOOT}" = "no" ]
index 03d989a85056243089c9ad3964f75678a5c0b7d2..a5667852c9d4445ca3935412d516cc2329d56c1b 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-#      $Id: tnlup,v 1.5 1999/07/13 12:49:37 misiek Exp $
+#      $Id: tnlup,v 1.6 1999/07/29 13:59:37 misiek Exp $
 #
 # Author: Arkadiusz Mi¶kiewicz <misiek@pld.org.pl>
 #
@@ -14,6 +14,18 @@ cd /etc/sysconfig/network-scripts
 . /etc/sysconfig/network
 
 CONFIG=$1
+
+[ -z "$CONFIG" ] && {
+    echo "usage: tnlup <device name>" >&2
+    exit 1
+}
+
+[ -f "/etc/sysconfig/interfaces/$CONFIG" ] || CONFIG=tnlcfg-$CONFIG
+[ -f "/etc/sysconfig/interfaces/$CONFIG" ] || {
+    echo "usage: tnlup <device name>" >&2
+    exit 1
+}
+
 source_config
 
 if [ "foo$2" = "fooboot" -a "${ONBOOT}" = "no" ]
This page took 0.139805 seconds and 4 git commands to generate.