1 |
diff -Nur e-smith-base-5.4.0/createlinks e-smith-base-5.4.0-local_service/createlinks |
2 |
--- e-smith-base-5.4.0/createlinks 2013-01-31 16:52:04.000000000 +0100 |
3 |
+++ e-smith-base-5.4.0-local_service/createlinks 2013-02-03 23:14:02.886353766 +0100 |
4 |
@@ -593,3 +593,9 @@ |
5 |
|
6 |
safe_symlink("run.dhclient", "root/var/service/wan/run.DHCPHostname"); |
7 |
safe_symlink("run.dhclient", "root/var/service/wan/run.DHCPEthernetAddress"); |
8 |
+ |
9 |
+# Local event |
10 |
+safe_symlink("daemontools", "root/etc/rc.d/init.d/supervise/local"); |
11 |
+safe_symlink("/var/service/local" , 'root/service/local'); |
12 |
+safe_touch("root/var/service/local/down"); |
13 |
+ |
14 |
diff -Nur e-smith-base-5.4.0/root/etc/e-smith/templates/etc/inittab/25local e-smith-base-5.4.0-local_service/root/etc/e-smith/templates/etc/inittab/25local |
15 |
--- e-smith-base-5.4.0/root/etc/e-smith/templates/etc/inittab/25local 2005-11-21 05:28:07.000000000 +0100 |
16 |
+++ e-smith-base-5.4.0-local_service/root/etc/e-smith/templates/etc/inittab/25local 1970-01-01 01:00:00.000000000 +0100 |
17 |
@@ -1,2 +0,0 @@ |
18 |
-ll:7:wait:/sbin/e-smith/signal-event local |
19 |
- |
20 |
diff -Nur e-smith-base-5.4.0/root/var/service/local/run e-smith-base-5.4.0-local_service/root/var/service/local/run |
21 |
--- e-smith-base-5.4.0/root/var/service/local/run 1970-01-01 01:00:00.000000000 +0100 |
22 |
+++ e-smith-base-5.4.0-local_service/root/var/service/local/run 2013-02-03 22:37:55.876077252 +0100 |
23 |
@@ -0,0 +1,3 @@ |
24 |
+#!/bin/sh |
25 |
+/sbin/e-smith/signal-event local |
26 |
+/usr/bin/sv d . |