Browse Source

Delete arch-specific scripts (#766)

These scripts are dupes of sys/src/cmd/auth

Signed-off-by: Graham MacDonald <grahamamacdonald@gmail.com>
Graham MacDonald 1 year ago
parent
commit
adfc57bb84
6 changed files with 0 additions and 92 deletions
  1. 0 5
      386/bin/auth/disable
  2. 0 5
      386/bin/auth/enable
  3. 0 36
      386/bin/auth/status
  4. 0 5
      aarch64/bin/auth/disable
  5. 0 5
      aarch64/bin/auth/enable
  6. 0 36
      aarch64/bin/auth/status

+ 0 - 5
386/bin/auth/disable

@@ -1,5 +0,0 @@
-#!/bin/rc
-if(test -e /mnt/keys/$1)
-	echo -n disabled > /mnt/keys/$1/status
-if(test -e /mnt/netkeys/$1)
-	echo -n disabled > /mnt/netkeys/$1/status

+ 0 - 5
386/bin/auth/enable

@@ -1,5 +0,0 @@
-#!/bin/rc
-if(test -e /mnt/keys/$1)
-	echo -n ok > /mnt/keys/$1/status
-if(test -e /mnt/netkeys/$1)
-	echo -n ok > /mnt/netkeys/$1/status

+ 0 - 36
386/bin/auth/status

@@ -1,36 +0,0 @@
-#!/bin/rc
-cd /mnt/keys/$1 > /dev/null >[2=1] && {
-	stat=`{cat status}
-	exp=`{cat expire}
-	switch($exp){
-	case never 0
-		exp='never expires'
-	case *
-		exp=(expires on `{date $exp})
-	}
-	switch($stat){
-	case expired
-		echo user $1: plan 9 key has expired
-	case *
-		echo user $1: plan 9 key status is $stat and $exp
-	}
-	grep '^'$1'[ 	]' /adm/keys.who | tail -1
-}
-cd /mnt/netkeys/$1 > /dev/null >[2=1] && {
-	stat=`{cat status}
-	exp=`{cat expire}
-	switch($exp){
-	case never 0
-		exp='never expires'
-	case *
-		exp=(expires on `{date $exp})
-	}
-	switch($stat){
-	case expired
-		echo user $1: network key has expired
-	case *
-		echo user $1: network key status is $stat and $exp
-		auth/printnetkey $1
-	}
-	grep '^'$1'[ 	]' /adm/netkeys.who | tail -1
-}

+ 0 - 5
aarch64/bin/auth/disable

@@ -1,5 +0,0 @@
-#!/bin/rc
-if(test -e /mnt/keys/$1)
-	echo -n disabled > /mnt/keys/$1/status
-if(test -e /mnt/netkeys/$1)
-	echo -n disabled > /mnt/netkeys/$1/status

+ 0 - 5
aarch64/bin/auth/enable

@@ -1,5 +0,0 @@
-#!/bin/rc
-if(test -e /mnt/keys/$1)
-	echo -n ok > /mnt/keys/$1/status
-if(test -e /mnt/netkeys/$1)
-	echo -n ok > /mnt/netkeys/$1/status

+ 0 - 36
aarch64/bin/auth/status

@@ -1,36 +0,0 @@
-#!/bin/rc
-cd /mnt/keys/$1 > /dev/null >[2=1] && {
-	stat=`{cat status}
-	exp=`{cat expire}
-	switch($exp){
-	case never 0
-		exp='never expires'
-	case *
-		exp=(expires on `{date $exp})
-	}
-	switch($stat){
-	case expired
-		echo user $1: plan 9 key has expired
-	case *
-		echo user $1: plan 9 key status is $stat and $exp
-	}
-	grep '^'$1'[ 	]' /adm/keys.who | tail -1
-}
-cd /mnt/netkeys/$1 > /dev/null >[2=1] && {
-	stat=`{cat status}
-	exp=`{cat expire}
-	switch($exp){
-	case never 0
-		exp='never expires'
-	case *
-		exp=(expires on `{date $exp})
-	}
-	switch($stat){
-	case expired
-		echo user $1: network key has expired
-	case *
-		echo user $1: network key status is $stat and $exp
-		auth/printnetkey $1
-	}
-	grep '^'$1'[ 	]' /adm/netkeys.who | tail -1
-}