1 |
jpp |
1.1 |
diff -Nur e-smith-runit-2.6.0.old/createlinks e-smith-runit-2.6.0/createlinks |
2 |
|
|
--- e-smith-runit-2.6.0.old/createlinks 2020-09-30 16:46:55.153000000 -0400 |
3 |
|
|
+++ e-smith-runit-2.6.0/createlinks 2020-09-30 16:54:38.004000000 -0400 |
4 |
|
|
@@ -22,8 +22,10 @@ |
5 |
|
|
" $!"; |
6 |
|
|
} |
7 |
|
|
|
8 |
|
|
-system('mkdir -p root/usr/lib/systemd/system/multi-user.target.wants/'); |
9 |
|
|
- unlink "root/usr/lib/systemd/system/multi-user.target.wants/runit.service"; |
10 |
|
|
-symlink("/usr/lib/systemd/system/runit.service", |
11 |
|
|
- "root/usr/lib/systemd/system/multi-user.target.wants/runit.service") |
12 |
|
|
- or die "Can't symlink to root/usr/lib/systemd/system/multi-user.target.wants/runit.service: $!"; |
13 |
|
|
+foreach my $target (qw(multi-user sme-server)) |
14 |
|
|
+{ |
15 |
|
|
+system('mkdir -p root/usr/lib/systemd/system/'.$target.'.target.wants/'); |
16 |
|
|
+symlink("../runit.service", |
17 |
|
|
+ "root/usr/lib/systemd/system/$target.target.wants/runit.service") |
18 |
|
|
+ or die "Can't symlink to root/usr/lib/systemd/system/$target.target.wants/runit.service: $!"; |
19 |
|
|
+} |