Skip to content
This repository was archived by the owner on Jun 30, 2021. It is now read-only.

Commit f687a7a

Browse files
authored
sinit: build without depending on ubase (#276)
* sinit: build with ubase instead of depending on it * remove leftover vim command * remove newline * sinit: cover with braces * sinit: comment ubase in the same function * sinit: add getty comments on the same line as the command itself * sinit: remove duplicate command * sinit: remove respawn, fix indentations, use infinite loop * sinit: shorten case function * add config.h to sinit * sinit: don't edit user configuration, add to the note * sinit: use kpow for the shutdown hook * sinit: remove post shutdown hook * sinit: fix build and remove ubase. Resolves #273 * sinit: link init to the sinit on the current directory * sinit: simplify launching services * sinit: change post-install message * sinit: change messages
1 parent bf05708 commit f687a7a

File tree

15 files changed

+46
-72
lines changed

15 files changed

+46
-72
lines changed

community/sinit/build

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
#!/bin/sh -e
22

3-
make CFLAGS="$CFLAGS -static"
3+
make CFLAGS="$CFLAGS -static" PREFIX=/usr DESTDIR="$1" install
4+
ln -s sinit "$1/usr/bin/init"
45

5-
install -Dm 755 sinit "$1/usr/bin/sinit"
6+
install -Dm755 poweroff "$1/usr/bin/poweroff"
7+
install -Dm755 reboot "$1/usr/bin/reboot"
68

7-
install -Dm 755 sinit.runit.boot "$1/etc/rc.d/sinit.runit.boot"
8-
install -Dm 755 sinit.getty.boot "$1/etc/rc.d/sinit.getty.boot"
9-
install -Dm 755 sinit.pre.shutdown "$1/etc/rc.d/sinit.pre.shutdown"
10-
install -Dm 755 sinit.post.shutdown "$1/etc/rc.d/sinit.post.shutdown"
9+
install -Dm644 sinit-launch-services.boot "$1/etc/rc.d/sinit-launch-services.boot"

community/sinit/checksums

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
78c2120a97a5e93b80606c5403bd731152f8a344e47aa4ab74970c1c11dc6fc0 sinit-1.0.tar.gz
2-
aa9462fd25447d169470def3bfe51d429b32db3efba2825779717f791ca12a56 config.def.h
3-
5d7c393e4f6b17bbe778a28a8d5a89317e6f86de16b476cf066f9d6e004497fc sinit.getty.boot
4-
64019ee1c9c1348e0dcce13496d96bfdf68e4f22a362c0c1ee96c9dcebe0e862 sinit.runit.boot
5-
ba33d1e788765db6f1ecd43fc3cf9c7330f6f78986c55ffec4524d8b8414878c sinit.pre.shutdown
6-
41fe50f31ffdb168ea1f60232347867750c31cf07e171e3d6648911e1b672c1e sinit.post.shutdown
2+
6f0f1a5f2f43b5bcfd4beaa93e1a49438d398cf758d7813bc6ba86b5156357a8 config.h
3+
f638aaa23383da584d3a56347a8e279abdc7c9c521661ef54a5bc8b955c5632b reboot
4+
4da8b0c2771a9046a7ce2ded49beb5297045e9979796e5e4b390168286f05379 poweroff
5+
3aa8642d8a1058876f3a47639640a81887298eac992bf15e41fbe420738b09ef sinit-launch-services.boot

community/sinit/depends

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
baseinit
2-
ubase

community/sinit/files/config.def.h

Lines changed: 0 additions & 3 deletions
This file was deleted.

community/sinit/files/config.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
static char *const rcinitcmd[] = { "/usr/lib/init/rc.boot", NULL };
2+
static char *const rcrebootcmd[] = { "/usr/lib/init/rc.shutdown", "reboot", NULL };
3+
static char *const rcpoweroffcmd[] = { "/usr/lib/init/rc.shutdown", "poweroff", NULL };

community/sinit/files/etc/rc.d/sinit.getty.boot

Lines changed: 0 additions & 5 deletions
This file was deleted.

community/sinit/files/etc/rc.d/sinit.post.shutdown

Lines changed: 0 additions & 10 deletions
This file was deleted.

community/sinit/files/etc/rc.d/sinit.pre.shutdown

Lines changed: 0 additions & 10 deletions
This file was deleted.

community/sinit/files/etc/rc.d/sinit.runit.boot

Lines changed: 0 additions & 3 deletions
This file was deleted.

community/sinit/files/poweroff

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
/bin/kill -s USR1 1

0 commit comments

Comments
 (0)