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

linld: 32 bits lseeks for tazboot
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jan 05 17:23:23 2019 +0100 (2019-01-05)
parents
children 02994416f017
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 "$@"