wok view syslinux/stuff/iso2exe/init.custom @ rev 20891

Update some WEB_SITE
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 26 08:20:18 2019 +0100 (11 months ago)
parents 37bef16b6789
children 02c70d036ea0
line source
1 #!/bin/sh
3 if [ "$1" == "loramhack" ]; then
4 cp $0 $2/init.extra
5 sed -i 's|^exec |exec /sbin|' $2/init.extra
6 cp -a /extra/. $2
7 exit
8 fi
9 if [ -d /etc ]; then
10 [ -d /extra ] && cp -a /extra/. / && rm -rf /extra
11 for i in /init.d/* ; do
12 [ -f $i ] && echo "=== $(date) $i === " && . $i
13 done 2>&1 | tee /var/log/init.log
14 else
15 sed -i -e 's|fail 2mDone|&\n '$0' loramhack /mnt$4|' \
16 -e 's| /sbin/init| /init.extra|' /init
17 fi
19 exec /init "$@"