version 1.10.2.8, 2017/06/28 08:58:51
|
version 1.10.2.12, 2020/10/22 12:37:59
|
Line 9
|
Line 9
|
|
|
### Dont edit this file !!! |
### Dont edit this file !!! |
|
|
|
Die() { |
|
echo -n "EXIT: " >&2; echo "$@" >&2 |
|
exit 1 |
|
} |
|
|
CheckVer() |
CheckVer() |
{ |
{ |
[ -z "$1" -o ! -r "$1" ] && return 1 |
[ -z "$1" -o ! -r "$1" ] && return 1 |
Line 158 MakeFS_etc()
|
Line 163 MakeFS_etc()
|
|
|
# ln -sf /elwix/pkg/etc/mk.conf $1/etc/mk.conf; |
# ln -sf /elwix/pkg/etc/mk.conf $1/etc/mk.conf; |
|
|
echo ${TARGET_ARCH} >$1/etc/platform; | echo "${TARGET_ARCH} $3" >$1/etc/platform; |
|
|
Create_etc_motd $1/etc/motd $3; |
Create_etc_motd $1/etc/motd $3; |
|
|
Line 192 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 307 StripFiles()
|
Line 314 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 |
} |
} |