version 1.10.2.11, 2020/06/11 00:51:37
|
version 1.11.2.2, 2021/03/21 01:42:08
|
Line 148 MakeFS_etc()
|
Line 148 MakeFS_etc()
|
chmod 0600 $1/etc/ssh/ssh_host_ecdsa_key; |
chmod 0600 $1/etc/ssh/ssh_host_ecdsa_key; |
chmod 0600 $1/etc/ssh/ssh_host_ed25519_key; |
chmod 0600 $1/etc/ssh/ssh_host_ed25519_key; |
|
|
chmod 0440 $1/etc/sudoers; | # chmod 0440 $1/etc/sudoers; |
|
|
mkdir -p $1/etc/mqtt; |
mkdir -p $1/etc/mqtt; |
chgrp -R 883 $1/etc/mqtt; |
chgrp -R 883 $1/etc/mqtt; |
Line 226 InstallList()
|
Line 226 InstallList()
|
sed -nE -e 's/^ *([^ #]+) */\1/p' < $1 | tr ':' '\n' >$TMPFILE |
sed -nE -e 's/^ *([^ #]+) */\1/p' < $1 | tr ':' '\n' >$TMPFILE |
cd $2 |
cd $2 |
for i in $(cat $TMPFILE); do |
for i in $(cat $TMPFILE); do |
|
if [ ! -f $i ]; then |
|
rm -f $TMPFILE |
|
echo "Error:: File not found $i" |
|
exit 1 |
|
fi |
if [ -x $i ]; then |
if [ -x $i ]; then |
echo "Strip '$i'" |
echo "Strip '$i'" |
${CEXEC} chflags -f noschg $i |
${CEXEC} chflags -f noschg $i |
Line 314 StripFiles()
|
Line 319 StripFiles()
|
done |
done |
cd - |
cd - |
rm -f $TMPFILE |
rm -f $TMPFILE |
|
fi |
|
} |
|
|
|
# $1 = file_pattern |
|
# $2 = From dir |
|
# $3 = To dir |
|
InstallLinks() |
|
{ |
|
if [ -d "$2" ]; then |
|
cd $2 |
|
find . -type l -name "$1" | |
|
tar -cvf - -T - | tar -C $3 -xf - |
|
cd - |
fi |
fi |
} |
} |