wok view syslinux/stuff/iso2exe/init.custom @ rev 19857
syslinux/iso2exe: fix recursive_partition + hybrib_mbr
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 18 09:21:47 2017 +0100 (2017-03-18) |
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 "$@"