#!/bin/sh # System initialization sequence: # # /init # | # +--(1) /etc/01_prepare.sh # | # +--(2) /etc/02_overlay.sh # | # +-- /etc/03_init.sh # | # +-- /sbin/init # | # +--(1) /etc/04_bootscript.sh (this file) # | | # | +-- udhcpc # | | # | +-- /etc/05_rc.udhcp # | # +--(2) /bin/sh (Alt + F1, main console) # | # +--(2) /bin/sh (Alt + F2) # | # +--(2) /bin/sh (Alt + F3) # | # +--(2) /bin/sh (Alt + F4) echo -e "Welcome to \\e[1mMinimal \\e[32mLinux \\e[31mLive\\e[0m (/sbin/init)" for DEVICE in [/sys/class/net/*] { echo "Found network device $(DEVICE##*/)" ip link set $(DEVICE##*/) up test $(DEVICE##*/) != lo && udhcpc -b -i $(DEVICE##*/) -s /etc/05_rc.dhcp } (CommandList children: [ (C {(echo)} {(-e)} { (DQ ("Welcome to ") (EscapedLiteralPart token:) ("e[1mMinimal ") (EscapedLiteralPart token:) ("e[32mLinux ") (EscapedLiteralPart token:) ("e[31mLive") (EscapedLiteralPart token:) ("e[0m (/sbin/init)") ) } ) (ForEach iter_name: DEVICE iter_words: [{(/sys/class/net/) (Lit_Other "*")}] do_arg_iter: False body: (DoGroup children: [ (C {(echo)} { (DQ ("Found network device ") (BracedVarSub token: suffix_op: (StringUnary op_id:VOp1_DPound arg_word:{("*") (Lit_Slash /)}) spids: [115 120] ) ) } ) (C {(ip)} {(link)} {(set)} { (BracedVarSub token: suffix_op: (StringUnary op_id:VOp1_DPound arg_word:{("*") (Lit_Slash /)}) spids: [131 136] ) } {(up)} ) (AndOr children: [ (C {(Lit_Other "[")} { (BracedVarSub token: suffix_op: (StringUnary op_id:VOp1_DPound arg_word:{("*") (Lit_Slash /)}) spids: [143 148] ) } {(KW_Bang "!") (Lit_Other "=")} {(lo)} {(Lit_Other "]")} ) (C {(udhcpc)} {(-b)} {(-i)} { (BracedVarSub token: suffix_op: (StringUnary op_id:VOp1_DPound arg_word:{("*") (Lit_Slash /)}) spids: [165 170] ) } {(-s)} {(/etc/05_rc.dhcp)} ) ] op_id: Op_DAmp ) ] spids: [108 176] ) spids: [102 106] ) ] )