diff options
-rwxr-xr-x | .graveyard/infest/core/angstrom (renamed from infest/core/angstrom) | 0 | ||||
-rwxr-xr-x | .graveyard/infest/core/debian (renamed from infest/core/debian) | 0 | ||||
-rw-r--r-- | .graveyard/infest/host-patch/beagleboard/Makefile (renamed from infest/host-patch/beagleboard/Makefile) | 0 | ||||
-rw-r--r-- | .graveyard/infest/host-patch/beagleboard/profile.patch (renamed from infest/host-patch/beagleboard/profile.patch) | 0 | ||||
-rw-r--r-- | infest/deploy-ssh-keys | 9 | ||||
-rw-r--r-- | ship/src/deploy-ssh-keys | 15 |
6 files changed, 15 insertions, 9 deletions
diff --git a/infest/core/angstrom b/.graveyard/infest/core/angstrom index dafb840f..dafb840f 100755 --- a/infest/core/angstrom +++ b/.graveyard/infest/core/angstrom diff --git a/infest/core/debian b/.graveyard/infest/core/debian index fedd1ede..fedd1ede 100755 --- a/infest/core/debian +++ b/.graveyard/infest/core/debian diff --git a/infest/host-patch/beagleboard/Makefile b/.graveyard/infest/host-patch/beagleboard/Makefile index 55952104..55952104 100644 --- a/infest/host-patch/beagleboard/Makefile +++ b/.graveyard/infest/host-patch/beagleboard/Makefile diff --git a/infest/host-patch/beagleboard/profile.patch b/.graveyard/infest/host-patch/beagleboard/profile.patch index d96173d7..d96173d7 100644 --- a/infest/host-patch/beagleboard/profile.patch +++ b/.graveyard/infest/host-patch/beagleboard/profile.patch diff --git a/infest/deploy-ssh-keys b/infest/deploy-ssh-keys deleted file mode 100644 index 156e2795..00000000 --- a/infest/deploy-ssh-keys +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh -cd $(dirname $0) -U="${1:-$(id -u -n)}" -H="$(grep "^$U" /etc/passwd | cut -d : -f 6)" -echo "deploying for user $U to $H/.ssh" -mkdir -p $H/.ssh -cp -vr skel/home/.ssh/authorized_keys $H/.ssh -chown $U $H -chown -R $U $H/.ssh diff --git a/ship/src/deploy-ssh-keys b/ship/src/deploy-ssh-keys new file mode 100644 index 00000000..7eedb2cb --- /dev/null +++ b/ship/src/deploy-ssh-keys @@ -0,0 +1,15 @@ +#!/bin/sh +#@info +#@strict +#@include core +cd $(dirname $0) +U="${1:-$(id -u -n)}" +H="$(grep "^$U" /etc/passwd | cut -d : -f 6)" +krebsdir=${krebsdir:-/krebs} + +info "deploying for user $U to $H/.ssh" +mkdir -p $H/.ssh + +cp -vr $krebsdir/infest/skel/home/.ssh/authorized_keys $H/.ssh +chown $U $H +chown -R $U $H/.ssh |