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

Remove ashism ==
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 26 09:14:07 2019 +0100 (23 months ago)
parents 02994416f017
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 "$@"