3 let simple = "id:5:initdefault:\n"
5 let inittab = "id:5:initdefault:
6 # System initialization.
7 si::sysinit:/etc/rc.d/rc.sysinit
10 ca::ctrlaltdel:/sbin/shutdown -t3 -r now
12 l0:0:wait:/etc/rc.d/rc 0
15 test Inittab.lns get inittab =
18 { "action" = "initdefault" }
20 { "#comment" = "System initialization." }
23 { "action" = "sysinit" }
24 { "process" = "/etc/rc.d/rc.sysinit" } }
26 { "#comment" = "Trap CTRL-ALT-DELETE" }
29 { "action" = "ctrlaltdel" }
30 { "process" = "/sbin/shutdown -t3 -r now" } }
35 { "process" = "/etc/rc.d/rc 0" } }
37 test Inittab.lns put simple after rm "/id/process" = *
39 test Inittab.lns put simple after set "/id/runlevels" "3" =
43 "co:2345:respawn:/usr/bin/command # End of line comment\n" =
45 { "runlevels" = "2345" }
46 { "action" = "respawn" }
47 { "process" = "/usr/bin/command " }
48 { "#comment" = "End of line comment" } }
51 "co:2345:respawn:/usr/bin/blank_comment # \t \n" =
53 { "runlevels" = "2345" }
54 { "action" = "respawn" }
55 { "process" = "/usr/bin/blank_comment " }
58 (* Bug 108: allow ':' in the process field *)
59 test Inittab.record get
60 "co:234:respawn:ttymon -p \"console login: \"\n" =
62 { "runlevels" = "234" }
63 { "action" = "respawn" }
64 { "process" = "ttymon -p \"console login: \"" } }
67 (* Local Variables: *)