projects
/
dell-switch
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
filter log/ filenames into sw.command
[dell-switch]
/
sw-running-config.sh
1
#!/bin/sh -e
2
3
if [ -z "$1" ] ; then
4
./sw-names | xargs -i $0 {}
5
exit 0
6
fi
7
8
sw=$1
9
10
config=$( basename $0 | sed -e 's/^sw-//' -e 's/.sh$//' )
11
12
NO_LOG=1 ./dell-switch.pl $sw "copy $config tftp://10.20.0.216/$sw"
13
cd running-config
14
git add $sw
15
git commit -m "$sw $config"