version 1.10.2.10, 2018/07/06 08:30:29
|
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 197 MakeFS_boot()
|
Line 197 MakeFS_boot()
|
install -m 444 ${CFGDIR}/boot/logo-elwix.4th $1/boot; |
install -m 444 ${CFGDIR}/boot/logo-elwix.4th $1/boot; |
install -m 444 ${CFGDIR}/boot/brand-elwix.4th $1/boot; |
install -m 444 ${CFGDIR}/boot/brand-elwix.4th $1/boot; |
install -m 444 ${CFGDIR}/boot/menu.4th $1/boot; |
install -m 444 ${CFGDIR}/boot/menu.4th $1/boot; |
|
install -m 444 ${CFGDIR}/boot/logo-elwix.lua $1/boot/lua; |
|
install -m 444 ${CFGDIR}/boot/brand-elwix.lua $1/boot/lua; |
;; |
;; |
*) |
*) |
;; |
;; |
Line 224 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 312 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 |
} |
} |