wok-next view syslinux/stuff/iso2exe/init.custom @ rev 19450

syslinux: typo in iso2exe
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Oct 17 15:31:24 2016 +0200 (2016-10-17)
parents
children
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 "$@"