mirror of
https://github.com/troglobit/finit.git
synced 2026-11-24 20:21:44 +00:00
Alpine Linux: Slight update + sync with Debian
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
2d9c147e0e
commit
3c1c5621a5
3 files changed
+29
-10
No files matched your search
@@ -13,6 +13,7 @@ used, or change the install prefix to `/usr`.
|
|||||||
|
|
||||||
The bundled `build.sh` script can be used to configure and build finit:
|
The bundled `build.sh` script can be used to configure and build finit:
|
||||||
|
|
||||||
|
alpine:~# cd finit
|
||||||
alpine:~/finit# ./contrib/alpine/build.sh
|
alpine:~/finit# ./contrib/alpine/build.sh
|
||||||
alpine:~/finit# make install
|
alpine:~/finit# make install
|
||||||
|
|
||||||
@@ -26,10 +27,10 @@ yourself to point to `finit` instead of `/bin/busybox`.
|
|||||||
|
|
||||||
Before rebooting, make sure to set up a [/etc/finit.conf](finit.conf),
|
Before rebooting, make sure to set up a [/etc/finit.conf](finit.conf),
|
||||||
and [/etc/finit.d/](finit.d) for your services. Samples are included in
|
and [/etc/finit.d/](finit.d) for your services. Samples are included in
|
||||||
this directory. Notice the symlinks in `/etc/finit.d/`, you can create
|
this directory. Notice the symlinks in `/etc/finit.d/`, which can be
|
||||||
them yourself or add them at runtime using `initctl enable SERVICE`.
|
created at runtime using `initctl enable SERVICE`. You can also use a
|
||||||
You can also use a standard [/etc/rc.local](rc.local) for one-shot set
|
standard [/etc/rc.local](rc.local) for one-shot tasks and initialization
|
||||||
up and initialization like keyboard language etc.
|
like keyboard language etc.
|
||||||
|
|
||||||
[libuEv]: https://github.com/troglobit/libuev
|
[libuEv]: https://github.com/troglobit/libuev
|
||||||
[libite]: https://github.com/troglobit/libite
|
[libite]: https://github.com/troglobit/libite
|
||||||
|
|||||||
+23
-2
@@ -1,7 +1,13 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
if [ ! -f configure -a -f autogen.sh ]; then
|
echo
|
||||||
echo "Building from GIT, creating configure script ..."
|
echo "*** Configuring Finit for Alpine Linux"
|
||||||
|
|
||||||
|
if [ ! -e configure ]; then
|
||||||
|
echo " The configure script is missing, maybe you're using a version from GIT?"
|
||||||
|
echo " Attempting to run the autogen.sh script, you will need these tools:"
|
||||||
|
echo " autoconf, automake, libtool, pkg-config ..."
|
||||||
|
echo
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -15,4 +21,19 @@ PKG_CONFIG_LIBDIR=/usr/local/lib/pkgconfig ./configure \
|
|||||||
--enable-inetd-discard-plugin --enable-inetd-time-plugin \
|
--enable-inetd-discard-plugin --enable-inetd-time-plugin \
|
||||||
--with-heading="Alpine Linux 3.6" --with-hostname=alpine
|
--with-heading="Alpine Linux 3.6" --with-hostname=alpine
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "*** Building ..."
|
||||||
|
echo
|
||||||
make
|
make
|
||||||
|
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo
|
||||||
|
echo "*** The build failed for some reason"
|
||||||
|
echo
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "*** Done"
|
||||||
|
echo
|
||||||
|
|
||||||
@@ -1,7 +1,4 @@
|
|||||||
# /etc/finit.conf: Example for Alpine Linux 3.4-3.6
|
# /etc/finit.conf: Example for Alpine Linux
|
||||||
# Services and tasks required to run at bootstrap [S] must
|
|
||||||
# be listed in this file.
|
|
||||||
#
|
|
||||||
# See /etc/finit.d/*.conf and `initctl list` for other services
|
# See /etc/finit.d/*.conf and `initctl list` for other services
|
||||||
|
|
||||||
## Runlevel to start after bootstrap, runlevel 'S'
|
## Runlevel to start after bootstrap, runlevel 'S'
|
||||||
|
|||||||
Reference in new issue
Block a user