wok-current annotate syslinux/stuff/iso2exe/init.custom @ rev 22821
updated geos and geos-dev (3.5.0 -> 3.8.0)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Feb 06 11:31:14 2020 +0100 (2020-02-06) |
parents | 02994416f017 |
children |
rev | line source |
---|---|
pascal@19450 | 1 #!/bin/sh |
pascal@19450 | 2 |
pascal@20892 | 3 if [ "$1" = "loramhack" ]; then |
pascal@19450 | 4 cp $0 $2/init.extra |
pascal@19450 | 5 sed -i 's|^exec |exec /sbin|' $2/init.extra |
pascal@20771 | 6 cp -a /extra/. $2 |
pascal@19450 | 7 exit |
pascal@19450 | 8 fi |
pascal@19450 | 9 if [ -d /etc ]; then |
pascal@19450 | 10 [ -d /extra ] && cp -a /extra/. / && rm -rf /extra |
pascal@19450 | 11 for i in /init.d/* ; do |
pascal@19450 | 12 [ -f $i ] && echo "=== $(date) $i === " && . $i |
pascal@19450 | 13 done 2>&1 | tee /var/log/init.log |
pascal@19450 | 14 else |
pascal@19450 | 15 sed -i -e 's|fail 2mDone|&\n '$0' loramhack /mnt$4|' \ |
pascal@19450 | 16 -e 's| /sbin/init| /init.extra|' /init |
pascal@19450 | 17 fi |
pascal@19450 | 18 |
pascal@19450 | 19 exec /init "$@" |