]> ruin.nu Git - popboot.git/commitdiff
added actions for gentoo
authorMichael Andreen <harv@ruin.nu>
Thu, 19 May 2005 20:30:18 +0000 (20:30 +0000)
committerMichael Andreen <harv@ruin.nu>
Thu, 19 May 2005 20:30:18 +0000 (20:30 +0000)
genoo [new file with mode: 0644]
parser.y

diff --git a/genoo b/genoo
new file mode 100644 (file)
index 0000000..fd0bb2d
--- /dev/null
+++ b/genoo
@@ -0,0 +1,74 @@
+#runlevels
+2: AUMIX, HALD, CRON
+3: AUMIX, HALD, CRON, CUPSD, DISTCCD, FIRWALL, HDDTEMP, HDPARM, SSHD, NTPD
+
+#startup for gentoo
+aumix
+ #?HOTPLUG no preconditions
+"/etc/init.d/aumix start"
+0: AUMIX
+
+cupsd
+?NET, ?LOGGER #, ?HOTPLUG
+"/etc/init.d/cupsd start"
+0: CUPSD
+
+distccd
+NET
+"/etc/init.d/distccd start"
+0: DISTCCD
+
+firewall
+NET
+"/etc/init.d/firwall start"
+0: FIREWALL
+
+hald
+DBUS #, HOTPLUG
+"/etc/init.d/hald start"
+0: HALD
+
+hddtemp
+ # no preconditions
+"/etc/init.d/hddtemp start"
+0: HDDTEMP
+
+hdparm
+ # no preconditions
+"/etc/init.d/hdparm start"
+0: HDPARM
+
+metalog
+ # no preconditions
+"/etc/inid.d/metalog start
+0: METALOG, LOGGER
+
+eth0
+ #?HOTPLUG
+"/etc/init.d/net.eth0 start"
+0: NET, ETH0
+
+ntp-client
+NET, ?LOGGER
+"/etc/init.d/ntp-client start"
+0: NTPCLIENT
+
+ntpd
+NET, ?LOGGER, ?NTPCLIENT
+"/etc/init.d/ntpd start"
+0: NTPD
+
+speedfreq
+LOGGER, ?ACPID
+"/etc/init.d/speedfreq start"
+0: SPEEDFREQ
+
+sshd
+NET, ?LOGGER
+"/etc/init.d/sshd start"
+0: SSHD
+
+vixie-cron
+?LOGGER, ?NTPCLIENT
+"/etc/init.d/vixie-cron start"
+0: CRON, VIXIE-CRON
index 1fec19db31f6f6704f3f1564e185c34ae6679542..4986208f21e49416cfd242be2bd7c704cfafe5ad 100644 (file)
--- a/parser.y
+++ b/parser.y
@@ -255,4 +255,7 @@ main (int argc, char** argv)
 
     Planner p(*actions, init, (*runlevels)[atoi(argv[2])]);
     p.execute();
+
+    delete actions;
+       delete runlevels;
 }