symlinker.sh: add staticmic.sh
Former-commit-id: d7cfa3331b43516d4e400db1ffce56399ff9cf60
This commit is contained in:
parent
dad9234690
commit
e561b9ddf3
16
symlinker.sh
16
symlinker.sh
@ -30,6 +30,19 @@ function idd(){
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function mic(){
|
||||||
|
name="staticmic"
|
||||||
|
linkDir="${linkDir}"
|
||||||
|
|
||||||
|
if [ ! -f "${linkDir}/${name}" ];then
|
||||||
|
printf "\nLinking ${pwd}/${name} to ${linkDir}\n"
|
||||||
|
ln -s $(pwd)/${name}.sh ${linkDir}/${name}
|
||||||
|
else
|
||||||
|
printf "${name} already exists in ${linkDir}\n"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
function svc(){
|
function svc(){
|
||||||
name="svc"
|
name="svc"
|
||||||
@ -56,6 +69,9 @@ case "${1}" in
|
|||||||
svc )
|
svc )
|
||||||
svc;;
|
svc;;
|
||||||
|
|
||||||
|
mic )
|
||||||
|
mic;;
|
||||||
|
|
||||||
test )
|
test )
|
||||||
echo ${linkDir};;
|
echo ${linkDir};;
|
||||||
* ) printf "\n${0} <command>\n"
|
* ) printf "\n${0} <command>\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user