mirror of
https://github.com/troglobit/finit.git
synced 2026-11-17 19:30:29 +00:00
Initial eeeXubuntu port merged from smurfy's port
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
1 parent
f516108ca6
commit
9f99f38561
4 files changed
+24
-4
No files matched your search
@@ -7,7 +7,7 @@ VERSION = 0.5-pre
|
|||||||
PKG = finit-$(VERSION)
|
PKG = finit-$(VERSION)
|
||||||
DFILES = Makefile README finit.c finit-mod.c finit-alt.c helpers.c helpers.h \
|
DFILES = Makefile README finit.c finit-mod.c finit-alt.c helpers.c helpers.h \
|
||||||
patches/*patch contrib/services.sh*
|
patches/*patch contrib/services.sh*
|
||||||
BINS = finit finit-mod finit-alt finit-mdv
|
BINS = finit finit-mod finit-alt finit-mdv finit-exb
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -62,6 +62,13 @@ finit-mdv: finit-mdv.o helpers.o
|
|||||||
finit-mdv.o: finit-alt.c Makefile
|
finit-mdv.o: finit-alt.c Makefile
|
||||||
$(CC) -c $(CFLAGS) -DDIST_MDV -o $@ finit-alt.c
|
$(CC) -c $(CFLAGS) -DDIST_MDV -o $@ finit-alt.c
|
||||||
|
|
||||||
|
finit-exb: finit-exb.o helpers.o
|
||||||
|
$(LD) $(LDFLAGS) -o $@ $+ $(LIBS)
|
||||||
|
strip $@
|
||||||
|
|
||||||
|
finit-exb.o: finit-alt.c Makefile
|
||||||
|
$(CC) -c $(CFLAGS) -DDIST_EEEXUBUNTU -o $@ finit-alt.c
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o core *~ $(BINS)
|
rm -f *.o core *~ $(BINS)
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
Experimental eeeXubuntu support merged from Smurfy's port, see
|
||||||
|
http://forum.eeeuser.com/viewtopic.php?id=15685
|
||||||
|
|
||||||
+10
-2
@@ -47,7 +47,7 @@ THE SOFTWARE.
|
|||||||
|
|
||||||
/* Distribution configuration */
|
/* Distribution configuration */
|
||||||
|
|
||||||
#ifdef DIST_MDV /* Mandriva */
|
#if defined DIST_MDV /* Mandriva */
|
||||||
#define RANDOMSEED "/var/lib/random-seed"
|
#define RANDOMSEED "/var/lib/random-seed"
|
||||||
#define SYSROOT "/sysroot"
|
#define SYSROOT "/sysroot"
|
||||||
#define GETTY "/usr/bin/openvt /sbin/mingetty tty2"
|
#define GETTY "/usr/bin/openvt /sbin/mingetty tty2"
|
||||||
@@ -57,6 +57,13 @@ THE SOFTWARE.
|
|||||||
#define PAM_CONSOLE
|
#define PAM_CONSOLE
|
||||||
#define LISTEN_INITCTL
|
#define LISTEN_INITCTL
|
||||||
#define RUNLEVEL 5
|
#define RUNLEVEL 5
|
||||||
|
#elif defined DIST_EEEXUBUNTU /* eeeXubuntu */
|
||||||
|
#define RANDOMSEED "/var/lib/urandom/random-seed"
|
||||||
|
#define SYSROOT "/sysroot"
|
||||||
|
#define GETTY "/usr/bin/openvt /sbin/getty 38400 tty2"
|
||||||
|
#define RUNPARTS "/bin/run-parts"
|
||||||
|
#define TOUCH_ETC_NETWORK_RUN_IFSTATE
|
||||||
|
#define LISTEN_INITCTL
|
||||||
#else /* original Eeepc distribution */
|
#else /* original Eeepc distribution */
|
||||||
#define RANDOMSEED "/var/lib/urandom/random-seed"
|
#define RANDOMSEED "/var/lib/urandom/random-seed"
|
||||||
#define SYSROOT "/mnt"
|
#define SYSROOT "/mnt"
|
||||||
@@ -151,7 +158,8 @@ int main()
|
|||||||
struct utmp entry;
|
struct utmp entry;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
puts("finit-alt " VERSION " (built " __DATE__ " by " WHOAMI ")");
|
puts("finit-alt " VERSION " (built " __DATE__ " " __TIME__
|
||||||
|
" by " WHOAMI ")");
|
||||||
|
|
||||||
chdir("/");
|
chdir("/");
|
||||||
umask(022);
|
umask(022);
|
||||||
|
|||||||
+2
-1
@@ -101,7 +101,8 @@ int main()
|
|||||||
char *x;
|
char *x;
|
||||||
sigset_t nmask, nmask2;
|
sigset_t nmask, nmask2;
|
||||||
|
|
||||||
puts("finit-mod " VERSION " (built " __DATE__ " by " WHOAMI ")");
|
puts("finit-mod " VERSION " (built " __DATE__ " " __TIME__
|
||||||
|
" by " WHOAMI ")");
|
||||||
|
|
||||||
chdir("/");
|
chdir("/");
|
||||||
umask(022);
|
umask(022);
|
||||||
|
|||||||
Reference in new issue
Block a user