(CommandList children: [ (FuncDef name: unmount_devpts body: (BraceGroup children: [ (If arms: [ (if_arm cond: (Sentence command: (C {(mountpoint)} {(-q)} {(/dev/pts/)}) terminator: <Op_Semi ";"> ) action: (C {(umount)} {(-n)} {(-l)} {(/dev/pts/)}) spids: [-1 47] ) ] spids: [-1 59] ) (If arms: [ (if_arm cond: (Sentence command: (C {(mountpoint)} {(-q)} {(/dev/shm/)}) terminator: <Op_Semi ";"> ) action: (C {(umount)} {(-n)} {(-l)} {(/dev/shm/)}) spids: [-1 72] ) ] spids: [-1 84] ) ] spids: [35] ) spids: [31 34] ) (FuncDef name: mount_devtmpfs body: (BraceGroup children: [ (If arms: [ (if_arm cond: (Sentence command: (C {(grep)} {(-E)} {(-q)} {(DQ ("^[^[:space:]]+ /dev devtmpfs"))} {(/proc/mounts)}) terminator: <Op_Semi ";"> ) action: (CommandList children: [ (C {(mount)} {(-n)} {(-o)} {(remount) (Lit_Comma ",") (Lit_VarLike "size=") ($ VSub_Name "$tmpfs_size") (Lit_Comma ",") (Lit_VarLike "mode=") (0755) } {(-t)} {(devtmpfs)} {(devtmpfs)} {(/dev)} ) (C {(return)}) ] ) spids: [-1 114] ) ] spids: [-1 143] ) (If arms: [ (if_arm cond: (Sentence command: (Pipeline children: [ (C {(mount)} {(-n)} {(-o)} {(Lit_VarLike "size=") ($ VSub_Name "$tmpfs_size") (Lit_Comma ",") (Lit_VarLike "mode=") (0755) } {(-t)} {(devtmpfs)} {(devtmpfs)} {(/dev)} ) ] negated: True ) terminator: <Op_Semi ";"> ) action: (CommandList children: [ (C {(log_failure_msg)} {(DQ ("udev requires devtmpfs support, not started"))}) (C {(log_end_msg)} {(1)}) ] ) spids: [-1 172] ) ] spids: [-1 187] ) (C {(return)} {(0)}) ] spids: [96] ) spids: [92 95] ) (FuncDef name: create_dev_makedev body: (BraceGroup children: [ (If arms: [ (if_arm cond: (Sentence command: (C {(Lit_Other "[")} {(-e)} {(/sbin/MAKEDEV)} {(Lit_Other "]")}) terminator: <Op_Semi ";"> ) action: (C {(ln)} {(-sf)} {(/sbin/MAKEDEV)} {(/dev/MAKEDEV)}) spids: [-1 216] ) ] else_action: (C {(ln)} {(-sf)} {(/bin/true)} {(/dev/MAKEDEV)}) spids: [228 240] ) ] spids: [202] ) spids: [198 201] ) (FuncDef name: move_udev_database body: (BraceGroup children: [ (AndOr children: [ (C {(Lit_Other "[")} {(-e)} {(DQ (/dev/.udev/))} {(Lit_Other "]")}) (C {(return)} {(0)}) ] op_id: Op_DPipe ) (AndOr children: [ (C {(Lit_Other "[")} {(KW_Bang "!")} {(-e)} {(/run/udev/)} {(Lit_Other "]")}) (C {(return)} {(0)}) ] op_id: Op_DPipe ) (AndOr children: [(C {(Lit_Other "[")} {(-e)} {(/run/)} {(Lit_Other "]")}) (C {(return)} {(0)})] op_id: Op_DPipe ) (AndOr children: [(C {(mountpoint)} {(-q)} {(/run/)}) (C {(return)} {(0)})] op_id: Op_DPipe ) (AndOr children: [(C {(mv)} {(/dev/.udev/)} {(/run/udev/)}) (C {(true)})] op_id: Op_DPipe ) ] spids: [255] ) spids: [251 254] ) (FuncDef name: supported_kernel body: (BraceGroup children: [ (Case to_match: {(DQ (CommandSubPart command_list:(C {(uname)} {(-r)}) spids:[344348]))} arms: [ (case_arm pat_list: [ {(2.) (Lit_Other "[") (012345) (Lit_Other "]") (.) (Lit_Other "*")} {(2.6.) (Lit_Other "[") (0-9) (Lit_Other "]")} {(2.6.) (Lit_Other "[") (0-9) (Lit_Other "]") (Lit_Other "[") (KW_Bang "!") (0-9) (Lit_Other "]") (Lit_Other "*") } ] action: (C {(return)} {(1)}) spids: [354 375 381 -1] ) (case_arm pat_list: [ {(2.6.) (Lit_Other "[") (12) (Lit_Other "]") (Lit_Other "[") (0-9) (Lit_Other "]")} {(2.6.) (Lit_Other "[") (12) (Lit_Other "]") (Lit_Other "[") (0-9) (Lit_Other "]") (Lit_Other "[") (KW_Bang "!") (0-9) (Lit_Other "]") (Lit_Other "*") } ] action: (C {(return)} {(1)}) spids: [384 404 410 -1] ) (case_arm pat_list: [ {(2.6.3) (Lit_Other "[") (0-1) (Lit_Other "]")} {(2.6.3) (Lit_Other "[") (0-1) (Lit_Other "]") (Lit_Other "[") (KW_Bang "!") (0-9) (Lit_Other "]") (Lit_Other "*") } ] action: (C {(return)} {(1)}) spids: [413 427 433 -1] ) ] spids: [341 351 436] ) (C {(return)} {(0)}) ] spids: [338] ) spids: [334 337] ) (FuncDef name: my_tty body: (BraceGroup children: [ (AndOr children: [ (C {(Lit_Other "[")} {(-x)} {(/bin/readlink)} {(Lit_Other "]")}) (C {(return)} {(0)}) ] op_id: Op_DPipe ) (AndOr children: [ (C {(Lit_Other "[")} {(-e)} {(/proc/self/fd/0)} {(Lit_Other "]")}) (C {(return)} {(0)}) ] op_id: Op_DPipe ) (AndOr children: [(C {(readlink)} {(--silent)} {(/proc/self/fd/0)}) (C {(true)})] op_id: Op_DPipe ) ] spids: [453] ) spids: [449 452] ) (FuncDef name: warn_if_interactive body: (BraceGroup children: [ (If arms: [ (if_arm cond: (Sentence command: (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$RUNLEVEL"))} {(Lit_Other "=")} {(DQ (S))} {(-a)} {(DQ ($ VSub_Name "$PREVLEVEL"))} {(Lit_Other "=")} {(DQ (N))} {(Lit_Other "]")} ) terminator: <Op_Semi ";"> ) action: (C {(return)}) spids: [-1 535] ) ] spids: [-1 541] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LeftVar name:TTY) rhs: {(CommandSubPart command_list:(C {(my_tty)}) spids:[546548])} spids: [545] ) ] spids: [545] ) (If arms: [ (if_arm cond: (Sentence command: (C {(Lit_Other "[")} {(-z)} {(DQ ($ VSub_Name "$TTY"))} {(-o)} {(DQ ($ VSub_Name "$TTY"))} {(Lit_Other "=")} {(DQ (/dev/console))} {(-o)} {(DQ ($ VSub_Name "$TTY"))} {(Lit_Other "=")} {(DQ (/dev/null))} {(Lit_Other "]")} ) terminator: <Op_Semi ";"> ) action: (C {(return)}) spids: [-1 588] ) ] spids: [-1 594] ) (C {(printf)} { (DQ (EscapedLiteralPart token:<Lit_EscapedChar "\\n">) (EscapedLiteralPart token:<Lit_EscapedChar "\\n">) (EscapedLiteralPart token:<Lit_EscapedChar "\\n">) ("It has been detected that the command") (EscapedLiteralPart token:<Lit_EscapedChar "\\n">) (EscapedLiteralPart token:<Lit_EscapedChar "\\n">) (EscapedLiteralPart token:<Lit_EscapedChar "\\t">) ($ VSub_Number "$0") (" ") ($ VSub_Star "$*") (EscapedLiteralPart token:<Lit_EscapedChar "\\n">) (EscapedLiteralPart token:<Lit_EscapedChar "\\n">) ) } ) (C {(printf)} { (DQ ("has been run from an interactive shell.") (EscapedLiteralPart token:<Lit_EscapedChar "\\n">) ) } ) (C {(printf)} { (DQ ("It will probably not do what you expect, so this script will wait") (EscapedLiteralPart token:<Lit_EscapedChar "\\n">) ) } ) (C {(printf)} { (DQ ("60 seconds before continuing. Press ^C to stop it.") (EscapedLiteralPart token:<Lit_EscapedChar "\\n">) ) } ) (C {(printf)} { (DQ ("RUNNING THIS COMMAND IS HIGHLY DISCOURAGED!") (EscapedLiteralPart token:<Lit_EscapedChar "\\n">) (EscapedLiteralPart token:<Lit_EscapedChar "\\n">) (EscapedLiteralPart token:<Lit_EscapedChar "\\n">) (EscapedLiteralPart token:<Lit_EscapedChar "\\n">) ) } ) (C {(sleep)} {(60)}) ] spids: [503] ) spids: [499 502] ) (AndOr children: [(C {(Lit_Other "[")} {(-x)} {(/sbin/udevd)} {(Lit_Other "]")}) (C {(exit)} {(0)})] op_id: Op_DPipe ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LeftVar name:PATH) rhs:{(DQ ("/sbin:/bin"))} spids:[677])] spids: [677] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LeftVar name:tmpfs_size) rhs:{(DQ (10M))} spids:[686])] spids: [686] ) (If arms: [ (if_arm cond: (Sentence command: (C {(Lit_Other "[")} {(-e)} {(/etc/udev/udev.conf)} {(Lit_Other "]")}) terminator: <Op_Semi ";"> ) action: (C {(.)} {(/etc/udev/udev.conf)}) spids: [-1 703] ) ] spids: [-1 710] ) (C {(.)} {(/lib/lsb/init-functions)}) (If arms: [ (if_arm cond: (Sentence command: (Pipeline children:[(C {(supported_kernel)})] negated:True) terminator: <Op_Semi ";"> ) action: (CommandList children: [ (C {(log_failure_msg)} {(DQ ("udev requires a kernel >= 2.6.32, not started"))}) (C {(log_end_msg)} {(1)}) ] ) spids: [-1 725] ) ] spids: [-1 739] ) (If arms: [ (if_arm cond: (Sentence command: (C {(Lit_Other "[")} {(KW_Bang "!")} {(-e)} {(/proc/filesystems)} {(Lit_Other "]")}) terminator: <Op_Semi ";"> ) action: (CommandList children: [ (C {(log_failure_msg)} {(DQ ("udev requires a mounted procfs, not started"))}) (C {(log_end_msg)} {(1)}) ] ) spids: [-1 755] ) ] spids: [-1 769] ) (If arms: [ (if_arm cond: (Sentence command: (Pipeline children: [(C {(grep)} {(-q)} {(SQ <"[[:space:]]devtmpfs$">)} {(/proc/filesystems)})] negated: True ) terminator: <Op_Semi ";"> ) action: (CommandList children: [ (C {(log_failure_msg)} {(DQ ("udev requires devtmpfs support, not started"))}) (C {(log_end_msg)} {(1)}) ] ) spids: [-1 787] ) ] spids: [-1 801] ) (If arms: [ (if_arm cond: (Sentence command: (C {(Lit_Other "[")} {(KW_Bang "!")} {(-d)} {(/sys/class/)} {(Lit_Other "]")}) terminator: <Op_Semi ";"> ) action: (CommandList children: [ (C {(log_failure_msg)} {(DQ ("udev requires a mounted sysfs, not started"))}) (C {(log_end_msg)} {(1)}) ] ) spids: [-1 817] ) ] spids: [-1 831] ) (If arms: [ (if_arm cond: (Sentence command: (C {(Lit_Other "[")} {(KW_Bang "!")} {(-e)} {(/sys/kernel/uevent_helper)} {(Lit_Other "]")} ) terminator: <Op_Semi ";"> ) action: (CommandList children: [ (C {(log_failure_msg)} {(DQ ("udev requires hotplug support, not started"))}) (C {(log_end_msg)} {(1)}) ] ) spids: [-1 847] ) ] spids: [-1 861] ) (If arms: [ (if_arm cond: (Sentence command: (Pipeline children: [ (C {(ps)} {(--no-headers)} {(--format)} {(args)} {(ax)}) (C {(egrep)} {(-q)} {(SQ <"^\\[">)}) ] negated: True ) terminator: <Op_Semi ";"> ) action: (CommandList children: [ (C {(log_warning_msg)} {(DQ ("udev does not support containers, not started"))}) (C {(exit)} {(0)}) ] ) spids: [-1 889] ) ] spids: [-1 903] ) (If arms: [ (if_arm cond: (Sentence command: (AndOr children: [ (C {(Lit_Other "[")} {(-d)} {(/sys/class/mem/null)} {(-a)} {(KW_Bang "!")} {(-L)} {(/sys/class/mem/null)} {(Lit_Other "]")} ) (C {(Lit_Other "[")} {(-e)} {(/sys/block)} {(-a)} {(KW_Bang "!")} {(-e)} {(/sys/class/block)} {(Lit_Other "]")} ) ] op_id: Op_DPipe ) terminator: <Op_Semi ";"> ) action: (CommandList children: [ (C {(log_warning_msg)} {(DQ ("CONFIG_SYSFS_DEPRECATED must not be selected"))}) (C {(log_warning_msg)} {(DQ ("Booting will continue in 30 seconds but many things will be broken"))} ) (C {(sleep)} {(30)}) ] ) spids: [-1 945] ) ] spids: [-1 966] ) (Case to_match: {(DQ ($ VSub_Number "$1"))} arms: [ (case_arm pat_list: [{(start)}] action: (CommandList children: [ (If arms: [ (if_arm cond: (Sentence command: (SimpleCommand words: [{(init_is_upstart)}] redirects: [ (Redirect op_id: Redir_Great arg_word: {(/dev/null)} fd: 2 spids: [996] ) ] ) terminator: <Op_Semi ";"> ) action: (C {(exit)} {(1)}) spids: [-1 1000] ) ] spids: [-1 1008] ) (If arms: [ (if_arm cond: (Sentence command: (C {(mountpoint)} {(-q)} {(/dev/)}) terminator: <Op_Semi ";"> ) action: (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LeftVar name:TMPFS_MOUNTED) rhs: {(1)} spids: [1023] ) ] spids: [1023] ) spids: [-1 1020] ) (if_arm cond: (Sentence command: (C {(Lit_Other "[")} {(-e)} {(DQ (/dev/.udev/))} {(Lit_Other "]")}) terminator: <Op_Semi ";"> ) action: (C {(log_warning_msg)} {(DQ (".udev/ already exists on the static /dev"))}) spids: [1027 1040] ) ] spids: [-1 1050] ) (If arms: [ (if_arm cond: (Sentence command: (C {(Lit_Other "[")} {(KW_Bang "!")} {(-e)} {(DQ (/dev/.udev/))} {(-a)} {(KW_Bang "!")} {(-e)} {(DQ (/run/udev/))} {(Lit_Other "]")} ) terminator: <Op_Semi ";"> ) action: (C {(warn_if_interactive)}) spids: [-1 1079] ) ] spids: [-1 1085] ) (SimpleCommand words: [{(echo)}] redirects: [ (Redirect op_id: Redir_Great arg_word: {(/sys/kernel/uevent_helper)} fd: -1 spids: [1091] ) ] ) (C {(move_udev_database)}) (If arms: [ (if_arm cond: (Sentence command: (C {(Lit_Other "[")} {(-z)} {(DQ ($ VSub_Name "$TMPFS_MOUNTED"))} {(Lit_Other "]")} ) terminator: <Op_Semi ";"> ) action: (CommandList children: [ (C {(unmount_devpts)}) (C {(mount_devtmpfs)}) (AndOr children: [ (C {(Lit_Other "[")} {(-d)} {(/proc/1)} {(Lit_Other "]")}) (C {(mount)} {(-n)} {(/proc)}) ] op_id: Op_DPipe ) ] ) spids: [-1 1114] ) ] spids: [-1 1140] ) (C {(udevadm)} {(info)} {(--cleanup-db)}) (AndOr children: [ (C {(Lit_Other "[")} {(-x)} {(/sbin/restorecon)} {(Lit_Other "]")}) (C {(/sbin/restorecon)} {(-R)} {(/dev)}) ] op_id: Op_DAmp ) (AndOr children: [(C {(/lib/udev/create_static_nodes)}) (C {(true)})] op_id: Op_DPipe ) (C {(log_daemon_msg)} {(DQ ("Starting the hotplug events dispatcher"))} {(DQ (udevd))}) (If arms: [ (if_arm cond: (Sentence command:(C {(udevd)} {(--daemon)}) terminator:<Op_Semi ";">) action: (C {(log_end_msg)} {($ VSub_QMark "$?")}) spids: [-1 1208] ) ] else_action: (CommandList children: [ (C {(log_warning_msg)} {($ VSub_QMark "$?")}) (C {(log_warning_msg)} {(DQ ("Waiting 15 seconds and trying to continue anyway"))} ) (C {(sleep)} {(15)}) ] ) spids: [1216 1236] ) (C {(log_action_begin_msg)} {(DQ ("Synthesizing the initial hotplug events"))}) (If arms: [ (if_arm cond: (Sentence command: (C {(udevadm)} {(trigger)} {(--action) (Lit_Other "=") (add)}) terminator: <Op_Semi ";"> ) action: (C {(log_action_end_msg)} {($ VSub_QMark "$?")}) spids: [-1 1258] ) ] else_action: (C {(log_action_end_msg)} {($ VSub_QMark "$?")}) spids: [1266 1274] ) (C {(create_dev_makedev)}) (C {(log_action_begin_msg)} {(DQ ("Waiting for /dev to be fully populated"))}) (If arms: [ (if_arm cond: (Sentence command:(C {(udevadm)} {(settle)}) terminator:<Op_Semi ";">) action: (C {(log_action_end_msg)} {(0)}) spids: [-1 1300] ) ] else_action: (C {(log_action_end_msg)} {(0)} {(SQ <timeout>)}) spids: [1308 1320] ) ] ) spids: [988 989 1323 -1] ) (case_arm pat_list: [{(stop)}] action: (CommandList children: [ (C {(log_daemon_msg)} {(DQ ("Stopping the hotplug events dispatcher"))} {(DQ (udevd))}) (If arms: [ (if_arm cond: (Sentence command: (C {(start-stop-daemon)} {(--stop)} {(--name)} {(udevd)} {(--user)} {(root)} {(--quiet)} {(--oknodo)} {(--retry)} {(5)} ) terminator: <Op_Semi ";"> ) action: (C {(log_end_msg)} {($ VSub_QMark "$?")}) spids: [-1 1365] ) ] else_action: (C {(log_end_msg)} {($ VSub_QMark "$?")}) spids: [1373 1381] ) ] ) spids: [1327 1328 1384 -1] ) (case_arm pat_list: [{(restart)}] action: (CommandList children: [ (If arms: [ (if_arm cond: (Sentence command: (SimpleCommand words: [{(init_is_upstart)}] redirects: [ (Redirect op_id: Redir_Great arg_word: {(/dev/null)} fd: 2 spids: [1396] ) ] ) terminator: <Op_Semi ";"> ) action: (C {(exit)} {(1)}) spids: [-1 1400] ) ] spids: [-1 1408] ) (C {(log_daemon_msg)} {(DQ ("Stopping the hotplug events dispatcher"))} {(DQ (udevd))}) (If arms: [ (if_arm cond: (Sentence command: (C {(start-stop-daemon)} {(--stop)} {(--name)} {(udevd)} {(--user)} {(root)} {(--quiet)} {(--oknodo)} {(--retry)} {(5)} ) terminator: <Op_Semi ";"> ) action: (C {(log_end_msg)} {($ VSub_QMark "$?")}) spids: [-1 1445] ) ] else_action: (AndOr children: [(C {(log_end_msg)} {($ VSub_QMark "$?")}) (C {(true)})] op_id: Op_DPipe ) spids: [1453 1465] ) (C {(log_daemon_msg)} {(DQ ("Starting the hotplug events dispatcher"))} {(DQ (udevd))}) (If arms: [ (if_arm cond: (Sentence command:(C {(udevd)} {(--daemon)}) terminator:<Op_Semi ";">) action: (C {(log_end_msg)} {($ VSub_QMark "$?")}) spids: [-1 1487] ) ] else_action: (C {(log_end_msg)} {($ VSub_QMark "$?")}) spids: [1495 1503] ) ] ) spids: [1388 1389 1506 -1] ) (case_arm pat_list: [{(reload)} {(force-reload)}] action: (C {(udevadm)} {(control)} {(--reload-rules)}) spids: [1510 1513 1523 -1] ) (case_arm pat_list: [{(status)}] action: (AndOr children: [ (C {(status_of_proc)} {(/sbin/udevd)} {(udevd)}) (AndOr children: [(C {(exit)} {(0)}) (C {(exit)} {($ VSub_QMark "$?")})] op_id: Op_DPipe ) ] op_id: Op_DAmp ) spids: [1527 1528 1550 -1] ) (case_arm pat_list: [{(Lit_Other "*")}] action: (CommandList children: [ (SimpleCommand words: [ {(echo)} { (DQ ("Usage: /etc/init.d/udev {start|stop|restart|reload|force-reload|status}")) } ] redirects: [(Redirect op_id:Redir_GreatAnd arg_word:{(2)} fd:-1 spids:[1564])] ) (C {(exit)} {(1)}) ] ) spids: [1554 1555 1573 -1] ) ] spids: [979 985 1575] ) (C {(exit)} {(0)}) ] )