(CommandList children: [ (AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} {(-f)} {(../_00build.conf)} {(Lit_Other ']')}) (C {(.)} {(../_00build.conf)}) ] ) (AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} {(-f)} {(../DISTRO_SPECS)} {(Lit_Other ']')}) (C {(.)} {(../DISTRO_SPECS)}) ] ) (AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} {(-z)} {(DQ ($ VSub_Name '$MKSQUASHFS'))} {(Lit_Other ']')}) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:MKSQUASHFS) op:Equal rhs:{(mksquashfs)} spids:[56])] spids: [56] ) ] ) (AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} {(-z)} {(DQ ($ VSub_Name '$ZDRVSFS'))} {(Lit_Other ']')}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:ZDRVSFS) op: Equal rhs: { (DQ (zdrv_) (${ VSub_Name DISTRO_FILE_PREFIX) (_) (${ VSub_Name DISTRO_VERSION) (.sfs)) } spids: [71] ) ] spids: [71] ) ] ) (Subshell child: (CommandList children: [ (C {(cd)} {(..)}) (Case to_match: {(DQ ($ VSub_Name '$KERNEL_TARBALL_URL'))} arms: [ (case_arm pat_list: [ {(Lit_Other '*') (.pet)} {(Lit_Other '*') (.deb)} {(Lit_Other '*') (.txz)} {(Lit_Other '*') (.tgz)} ] action: [ (C {(mkdir)} {(-p)} {(../local-repositories/kernel_pkgs)}) (SimpleCommand words: [{(ln)} {(-sf)} {(../local-repositories/kernel_pkgs)} {(kernel_pkgs)}] redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[130])] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {(KW_Bang '!')} {(-f)} {(kernel_pkgs/) (BracedVarSub token: <VSub_Name KERNEL_TARBALL_URL> suffix_op: (StringUnary op_id: VOp1_DPound arg_word: {('*') (Lit_Slash /)} ) spids: [143 148] ) } {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (C {(echo)} {(-e)} {(DQ (Lit_Other '\\') ('nDownloading kernel pkg...'))}) (C {(wget)} {(-P)} {(kernel_pkgs)} {(-c)} {(${ VSub_Name WGET_SHOW_PROGRESS)} {(DQ ($ VSub_Name '$KERNEL_TARBALL_URL'))} ) ] spids: [16777215 154] ) ] spids: [16777215 184] ) ] spids: [101 112 186 16777215] ) ] spids: [93 99 189] ) ] ) spids: [85 191] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:KERNELPKG) op: Equal rhs: { (BracedVarSub token: <VSub_Name KERNEL_TARBALL_URL> suffix_op: (StringUnary op_id:VOp1_DPound arg_word:{('*') (Lit_Slash /)}) spids: [195 200] ) } spids: [194] ) ] spids: [194] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {(KW_Bang '!')} {(-f)} {(../kernel_pkgs/) (${ VSub_Name KERNELPKG)} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (C {(echo)} {(DQ ('file not found: ../kernel_pkgs/') (${ VSub_Name KERNELPKG))}) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) ] spids: [16777215 223] ) ] spids: [16777215 240] ) (Case to_match: {($ VSub_Name '$KERNELPKG')} arms: [ (case_arm pat_list: [{(Lit_Other '*') (.pet)} {(Lit_Other '*') (.txz)} {(Lit_Other '*') (.tgz)}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:cmd) op: Equal rhs: {(SQ <'tar --list -f'>)} spids: [260] ) ] spids: [260] ) ] spids: [250 258 265 16777215] ) (case_arm pat_list: [{(Lit_Other '*') (.deb)}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:cmd) op: Equal rhs: {(SQ <'dpkg-deb --contents'>)} spids: [272] ) ] spids: [272] ) ] spids: [268 270 277 16777215] ) ] spids: [243 247 279] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:KERNELVER) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (SimpleCommand words: [ {($ VSub_Name '$cmd')} {(../kernel_pkgs/) (${ VSub_Name KERNELPKG)} ] redirects: [ (Redir op_id: Redir_Great fd: 2 arg_word: {(/dev/null)} spids: [291] ) ] ) (C {(grep)} {(-o)} {(SQ <'/lib/modules/[23456789]\\..*'>)}) (C {(head)} {(-n)} {(1)}) (C {(cut)} {(-f)} {(4)} {(-d)} {(SQ </>)}) ] negated: F ) ] ) left_token: <Left_Backtick '`'> spids: [283 325] ) ) } spids: [281] ) ] spids: [281] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:dotnum) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(echo)} {(-n)} {(DQ ($ VSub_Name '$KERNELVER'))}) (C {(sed)} {(-e)} {(SQ <'s%[^\\.]%%g'>)}) (C {(wc)} {(-c)}) ] negated: F ) ] ) left_token: <Left_Backtick '`'> spids: [334 358] ) ) } spids: [332] ) ] spids: [332] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:SUB_KERNELVER) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(echo)} {(-n)} {(DQ ($ VSub_Name '$KERNELVER'))}) (C {(cut)} {(-f)} {(1)} {(-d)} {(SQ <->)}) (C {(cut)} {(-f)} {(3)} {(-d)} {(SQ <.>)}) ] negated: F ) ] ) left_token: <Left_Backtick '`'> spids: [362 398] ) } spids: [361] ) ] spids: [361] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:MAJ_KERNELVER) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (C {(echo)} {(-n)} {(DQ ($ VSub_Name '$KERNELVER'))}) (C {(cut)} {(-f)} {(1)} {(-d)} {(SQ <->)}) (C {(cut)} {(-f)} {(1)} {(-d)} {(SQ <.>)}) ] negated: F ) ] ) left_token: <Left_Backtick '`'> spids: [401 437] ) } spids: [400] ) ] spids: [400] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {(DQ ($ VSub_Name '$MAJ_KERNELVER'))} {(Lit_Other '=')} {(DQ (2))} {(-a)} {(DQ ($ VSub_Name '$SUB_KERNELVER'))} {(KW_Bang '!') (Lit_Other '=')} {(DQ )} {(-a)} {(DQ ($ VSub_Name '$SUB_KERNELVER'))} {(-lt)} {(29)} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (C {(echo)} {(DQ ('ERROR: only kernel 2.6.29+ allowed '))}) (ControlFlow token:<ControlFlow_Exit exit> arg_word:{(1)}) ] spids: [16777215 485] ) ] spids: [16777215 499] ) (C {(echo)} { (DQ ('You have chosen ') ($ VSub_Name '$KERNELPKG') (', which is version ') ($ VSub_Name '$KERNELVER') (.) ) } ) (C {(rm)} {(-rf)} {(zdrv)}) (C {(mkdir)} {(-p)} {(zdrv)}) (C {(echo)}) (Case to_match: {($ VSub_Name '$KERNELPKG')} arms: [ (case_arm pat_list: [{(Lit_Other '*') (.pet)}] action: [ (C {(rm)} {(-f)} {($ VSub_Name '$KERNELPKG')}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:KERNPKGNAMEONLY) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children: [(C {(basename)} {($ VSub_Name '$KERNELPKG')} {(.pet)})] ) left_token: <Left_Backtick '`'> spids: [551 557] ) ) } spids: [549] ) ] spids: [549] ) (C {(rm)} {(-rf)} {($ VSub_Name '$KERNPKGNAMEONLY')}) (C {(cp)} {(../kernel_pkgs/) (${ VSub_Name KERNELPKG)} {(./)}) (C {(pet2tgz)} {($ VSub_Name '$KERNELPKG')}) (C {(tar)} {(-xf)} {($ VSub_Name '$KERNPKGNAMEONLY') (.tar.) (Lit_Other '?') (z)}) (C {(rm)} {(-rf)} {(zdrv/)}) (C {(mv)} {(-f)} {($ VSub_Name '$KERNPKGNAMEONLY')} {(zdrv/)}) ] spids: [537 539 609 16777215] ) (case_arm pat_list: [{(Lit_Other '*') (.deb)}] action: [ (SimpleCommand words: [{(dpkg-deb)} {(-x)} {(../kernel_pkgs/) (${ VSub_Name KERNELPKG)} {(zdrv)}] redirects: [(Redir op_id:Redir_Great fd:1 arg_word:{(/dev/null)} spids:[632])] ) ] spids: [616 618 636 16777215] ) ] spids: [530 534 638] ) (C {(mv)} {(-f)} {(zdrv/etc/modules/firmware.dep)} {(zdrv/etc/modules/firmware.dep.) (${ VSub_Name KERNELVER)} ) (C {(mkdir)} {(-p)} {(zdrv/lib/modules/) ($ VSub_Name '$KERNELVER')}) (AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} {(-f)} {(zdrv/etc/modules/modules.builtin)} {(Lit_Other ']')}) (C {(cp)} {(-a)} {(-f)} {(zdrv/etc/modules/modules.builtin)} {(zdrv/lib/modules/) ($ VSub_Name '$KERNELVER') (/)} ) ] ) (AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} {(-f)} {(zdrv/etc/modules/modules.order)} {(Lit_Other ']')}) (C {(cp)} {(-a)} {(-f)} {(zdrv/etc/modules/modules.order)} {(zdrv/lib/modules/) ($ VSub_Name '$KERNELVER') (/)} ) ] ) (SimpleCommand words: [{(cp)} {(-a)} {(zdrv/boot/System.map) (Lit_Other '*')} {(./System.map)}] redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[717])] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:USINGKMOD) op:Equal rhs:{(SQ <no>)} spids:[721])] spids: [721] ) (AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} { (DQ (CommandSubPart command_list: (CommandList children: [(C {(grep)} {(SQ <'^kmod'>)} {(../woof-installed-packages)})] ) left_token: <Left_Backtick '`'> spids: [729 737] ) ) } {(KW_Bang '!') (Lit_Other '=')} {(DQ )} {(Lit_Other ']')} ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:USINGKMOD) op:Equal rhs:{(SQ <yes>)} spids:[750])] spids: [750] ) ] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {(DQ ($ VSub_Name '$USINGKMOD'))} {(Lit_Other '=')} {(DQ (no))} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {(KW_Bang '!')} {(-f)} {(zdrv/lib/modules/) ($ VSub_Name '$KERNELVER') (/modules.dep)} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (C {(busybox)} {(depmod)} {(-b)} {(zdrv)} {(-F)} {(System.map)} {($ VSub_Name '$KERNELVER')} ) ] spids: [16777215 788] ) ] spids: [16777215 806] ) ] spids: [16777215 771] ) ] else_action: [ (C {(cp)} {(-f)} {(../boot/kmod)} {(./)}) (C {(ln)} {(-snf)} {(kmod)} {(depmod)}) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {(KW_Bang '!')} {(-f)} {(zdrv/lib/modules/) ($ VSub_Name '$KERNELVER') (/modules.dep)} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (C {(./depmod)} {(-b)} {(zdrv)} {(-F)} {(System.map)} {($ VSub_Name '$KERNELVER')}) ] spids: [16777215 843] ) ] spids: [16777215 859] ) ] spids: [808 861] ) (ForEach iter_name: BIGMODS iter_words: [{(agr)} {(hcf)} {(hsf)} {(intel5)} {(Intel5)} {(esscom)} {(pctel)}] do_arg_iter: F body: (DoGroup children: [ (ForEach iter_name: ONEBIGMOD iter_words: [ { (CommandSubPart command_list: (CommandList children: [ (C {(find)} {(zdrv/lib/modules/) (${ VSub_Name KERNELVER) (/)} {(-type)} {(f)} {(-name)} {(${ VSub_Name BIGMODS) (Lit_Other '*') (.ko)} {(-o)} {(-name)} {(${ VSub_Name BIGMODS) (Lit_Other '*') (HIDE)} ) ] ) left_token: <Left_Backtick '`'> spids: [896 926] ) } ] do_arg_iter: F body: (DoGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:BIGMODNAME) op: Equal rhs: { (DQ (CommandSubPart command_list: (CommandList children: [(C {(basename)} {($ VSub_Name '$ONEBIGMOD')})] ) left_token: <Left_Backtick '`'> spids: [937 941] ) ) } spids: [935] ) ] spids: [935] ) (C {(echo)} {(-n)} {(DQ ('deleting ') ($ VSub_Name '$BIGMODNAME') (' '))}) (AndOr ops: [Op_DAmp] children: [ (C {(Lit_Other '[')} {(-f)} {($ VSub_Name '$ONEBIGMOD')} {(Lit_Other ']')}) (C {(rm)} {(-f)} {($ VSub_Name '$ONEBIGMOD')}) ] ) ] spids: [932 973] ) spids: [895 16777215] ) ] spids: [887 975] ) spids: [872 16777215] ) (SimpleCommand words: [{(rm)} {(-rf)} {(zdrv/lib/modules/all-firmware/hsfmodem) (Lit_Other '*')}] redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[984])] ) (SimpleCommand words: [{(rm)} {(-rf)} {(zdrv/lib/modules/all-firmware/hcfpcimodem) (Lit_Other '*')}] redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[994])] ) (SimpleCommand words: [{(rm)} {(-rf)} {(zdrv/lib/modules/all-firmware/intel536ep) (Lit_Other '*')}] redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[1004])] ) (SimpleCommand words: [{(rm)} {(-rf)} {(zdrv/lib/modules/all-firmware/intel537) (Lit_Other '*')}] redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[1014])] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other '[')} {(DQ ($ VSub_Name '$USINGKMOD'))} {(Lit_Other '=')} {(DQ (no))} {(Lit_Other ']')} ) terminator: <Op_Semi ';'> ) ] action: [ (C {(busybox)} {(depmod)} {(-b)} {(zdrv)} {(-F)} {(System.map)} {($ VSub_Name '$KERNELVER')}) ] spids: [16777215 1034] ) ] else_action: [ (C {(cp)} {(-f)} {(../boot/kmod)} {(./kmod)}) (C {(ln)} {(-snf)} {(kmod)} {(depmod)}) (C {(./depmod)} {(-b)} {(zdrv)} {(-F)} {(System.map)} {($ VSub_Name '$KERNELVER')}) ] spids: [1058 1091] ) (C {(sync)}) (ForEach iter_name: r iter_words: [ {(auibusy)} {(auplink)} {(mount.aufs)} {(umount.aufs)} {(aufs)} {(libau.so) (Lit_Other '*')} {(aufs)} {(aufs.5)} {(aubrsync)} {(aubusy)} {(auchk)} ] do_arg_iter: F body: (DoGroup children: [ (Pipeline children: [ (C {(find)} {(rootfs-complete/)} {(-type)} {(f)} {(-name)} {($ VSub_Name '$r')}) (C {(sed)} {(SQ <'s|^rootfs-complete/||'>)}) (While cond: [(Sentence child:(C {(read)} {(f)}) terminator:<Op_Semi ';'>)] body: (DoGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:dir) op: Equal rhs: {(zdrv/) (CommandSubPart command_list: (CommandList children: [(C {(dirname)} {($ VSub_Name '$f')})] ) left_token: <Left_CommandSub '$('> spids: [1168 1172] ) } spids: [1166] ) ] spids: [1166] ) (C {(mkdir)} {(-p)} {($ VSub_Name '$dir')}) (C {(mv)} {(-f)} {(rootfs-complete/) (${ VSub_Name f)} {($ VSub_Name '$dir')}) ] spids: [1163 1194] ) ) ] negated: F ) ] spids: [1128 1196] ) spids: [1104 16777215] ) (C {(mv)} {(zdrv/boot/vmlinuz) (Lit_Other '*')} {(build/vmlinuz)}) (C {(sync)}) (C {(${ VSub_Name MKSQUASHFS)} {(zdrv)} {(${ VSub_Name ZDRVSFS)} {(${ VSub_Name COMPCHOICE)}) (C {(sync)}) (C {(chmod)} {(644)} {(${ VSub_Name ZDRVSFS)}) (C {(mv)} {(-f)} {(${ VSub_Name ZDRVSFS)} {(build/)}) (SimpleCommand words: [{(rm)} {(-rf)} {(rootfs-complete/boot)}] redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[1258])] ) (SimpleCommand words: [{(rm)} {(-rf)} {(rootfs-complete/lib/modules)}] redirects: [(Redir op_id:Redir_Great fd:2 arg_word:{(/dev/null)} spids:[1267])] ) ] )