repo.or.cz
/
tomato.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
RT-AC56 3.0.0.4.374.37 core
[tomato.git]
/
release
/
src-rt-6.x.4708
/
wl
/
config
/
diffupdate.sh
blob
cd58fd13924c2cb8bfb91032edbeeb6348dc49e3
1
#!/bin/sh
2
# usage: this_program file1 file2
3
4
if
test -r
$2
;
then
5
if
cmp
$1 $2
> /
dev
/
null
;
then
6
# echo $2 is unchanged
7
rm
-f
$1
8
else
9
mv
-f
$1 $2
10
fi
11
else
12
mv
-f
$1 $2
13
fi