OSDN Git Service
(root)
/
instantos
/
instantARCH.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
first iroot test
[instantos/instantARCH.git]
/
iroot.sh
1
#!/bin/bash
2
3
# utility to manage installer variables
4
5
IROOT="/root/instantARCH/config"
6
7
if [ "$1" = "i" ]; then
8
cat /dev/stdin >"$IROOT/$2"
9
elif [ -n "$2" ]; then
10
echo "$2" >"$IROOT/$1"
11
else
12
if [ -e "$IROOT/$1" ]; then
13
cat "$IROOT/$1"
14
else
15
exit 1
16
fi
17
fi