mirror of
https://github.com/troglobit/finit.git
synced 2026-11-01 13:10:32 +00:00
Archive previous versions for reference.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
e2c4a6ceaf
commit
a654d99b92
10 files changed
No files matched your search
@@ -1,83 +0,0 @@
|
||||
CC = gcc
|
||||
CFLAGS = -Os -Wall -DVERSION=\"$(VERSION)\" -DWHOAMI=\"`whoami`@`hostname`\"
|
||||
LD = gcc
|
||||
LDFLAGS =
|
||||
LIBS =
|
||||
VERSION = 0.7-pre
|
||||
PKG = finit-$(VERSION)
|
||||
DFILES = Makefile README finit-org.c finit-mod.c finit.c helpers.c helpers.h \
|
||||
patches/*patch contrib/services.sh*
|
||||
BINS = finit-mod finit finit-mdv #finit-exb
|
||||
|
||||
|
||||
|
||||
#### Configurable parameters
|
||||
|
||||
# Default user for finit if not "user"
|
||||
#DEFUSER = fred
|
||||
|
||||
# Use -march=pentium-m to build for Eeepc
|
||||
#CFLAGS += -march=pentium-m
|
||||
|
||||
# Omit the first /sbin/hwclock if CONFIG_RTC_HCTOSYS is enabled in the kernel
|
||||
CFLAGS += -DNO_HCTOSYS
|
||||
|
||||
# Use built-in run-parts instead of /bin/run-parts
|
||||
CFLAGS += -DBUILTIN_RUNPARTS
|
||||
|
||||
#### End of configurable parameters
|
||||
|
||||
|
||||
|
||||
ifneq ($(DEFUSER),)
|
||||
CFLAGS += -DDEFUSER=\"$(DEFUSER)\"
|
||||
endif
|
||||
|
||||
.c.o:
|
||||
$(CC) -c $(CFLAGS) -o $*.o $<
|
||||
|
||||
all: $(BINS)
|
||||
|
||||
finit: finit.o
|
||||
$(LD) $(LDFLAGS) -o $@ $+ $(LIBS)
|
||||
strip $@
|
||||
|
||||
finit-mod: finit-mod.o helpers.o
|
||||
$(LD) $(LDFLAGS) -o $@ $+ $(LIBS)
|
||||
strip $@
|
||||
|
||||
finit: finit.o helpers.o
|
||||
$(LD) $(LDFLAGS) -o $@ $+ $(LIBS)
|
||||
strip $@
|
||||
|
||||
finit-mdv: finit-mdv.o helpers.o
|
||||
$(LD) $(LDFLAGS) -o $@ $+ $(LIBS)
|
||||
strip $@
|
||||
|
||||
finit-mdv.o: finit.c Makefile
|
||||
$(CC) -c $(CFLAGS) -DDIST_MDV -o $@ finit.c
|
||||
|
||||
finit-exb: finit-exb.o helpers.o
|
||||
$(LD) $(LDFLAGS) -o $@ $+ $(LIBS)
|
||||
strip $@
|
||||
|
||||
finit-exb.o: finit.c Makefile
|
||||
$(CC) -c $(CFLAGS) -DDIST_EEEXUBUNTU -o $@ finit.c
|
||||
|
||||
clean:
|
||||
rm -f *.o core *~ $(BINS)
|
||||
|
||||
finit.o: finit-org.c Makefile
|
||||
|
||||
finit-mod.o: finit-mod.c Makefile
|
||||
|
||||
helpers.o: helpers.c Makefile
|
||||
|
||||
dist:
|
||||
rm -Rf $(PKG)
|
||||
mkdir -p $(PKG)/contrib $(PKG)/patches
|
||||
for i in $(DFILES); do cp $$i $(PKG)/`dirname $$i`; done
|
||||
tar cf - $(PKG) | gzip -c > $(PKG).tar.gz
|
||||
rm -Rf $(PKG)
|
||||
ls -l $(PKG).tar.gz
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Example /usr/sbin/services.sh that can be used in a Mandriva 2008 system
|
||||
# running KDE
|
||||
|
||||
mkdir /var/lock/subsys
|
||||
chmod 1777 /var/lock/subsys
|
||||
/sbin/start_udev
|
||||
mkdir /var/run/dbus
|
||||
/etc/init.d/messagebus start
|
||||
/etc/init.d/haldaemon start
|
||||
/etc/init.d/alsa start
|
||||
/etc/init.d/sound start
|
||||
/etc/init.d/crond start
|
||||
/etc/init.d/network-up start
|
||||
/etc/init.d/network start
|
||||
#/etc/init.d/sshd start
|
||||
/etc/init.d/syslog start
|
||||
/sbin/pam_console_apply
|
||||
#kbuildsycoca --noincremental
|
||||
@@ -1,28 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Else oocalc will crash
|
||||
mknod /dev/random c 1 8
|
||||
|
||||
mkdir /var/lock/subsys
|
||||
chmod 1777 /var/lock/subsys
|
||||
mkdir /var/run/dbus
|
||||
mkdir /var/run/netreport
|
||||
|
||||
/etc/init.d/messagebus start
|
||||
|
||||
/sbin/start_udev.simple
|
||||
for module in `/bin/grep -hv '#' /etc/modprobe.preload /etc/modprobe.preload.d/*`; do
|
||||
/sbin/modprobe $module
|
||||
done
|
||||
|
||||
# Need to find a way to apply udev config
|
||||
chmod 0666 /dev/ptmx
|
||||
|
||||
/etc/init.d/network-up start
|
||||
/etc/init.d/network start
|
||||
/etc/init.d/acpid start
|
||||
/etc/init.d/haldaemon start
|
||||
sleep 10
|
||||
for i in /etc/rc5.d/S*; do
|
||||
$i status > /dev/null 2>&1 || $i start
|
||||
done
|
||||
@@ -1,44 +0,0 @@
|
||||
#!/bin/sh
|
||||
# precaution, if the hotplug tag exists in mkinitrd
|
||||
killall nash-hotplug &
|
||||
|
||||
#give some priority to the user processes
|
||||
renice -5 -u gdium
|
||||
|
||||
# Else oocalc will crash
|
||||
mknod /dev/random c 1 8 &
|
||||
mkdir /var/lock/subsys &
|
||||
chmod 1777 /var/lock/subsys
|
||||
mkdir /var/run/dbus &
|
||||
mkdir /var/run/netreport &
|
||||
mkdir /var/run/ConsoleKit &
|
||||
mkdir /var/log &
|
||||
/etc/init.d/haldaemon start &
|
||||
|
||||
sleep 25
|
||||
# postpone udev and others startup, they are too slow
|
||||
# limit the amount of udev childs, should speed up a little
|
||||
export UDEV_MAX_CHILDS=2
|
||||
export UDEV_MAX_CHILDS_RUNNING=2
|
||||
/sbin/start_udev
|
||||
/sbin/swapon -a &
|
||||
|
||||
chmod 0666 /dev/null
|
||||
chmod 0666 /dev/ptmx
|
||||
/etc/init.d/alsa start
|
||||
/etc/init.d/network start
|
||||
for module in `/bin/grep -hv '#' /etc/modprobe.preload /etc/modprobe.preload.d/*`; do
|
||||
/sbin/modprobe $module
|
||||
done
|
||||
|
||||
# restore (hopefully) the priority to the user processes
|
||||
renice 0 -u gdium
|
||||
|
||||
# fuse status always say 0
|
||||
/sbin/service fuse start
|
||||
for i in /etc/rc5.d/S*; do
|
||||
$i status > /dev/null 2>&1 || $i start
|
||||
done
|
||||
|
||||
# enable this to stop bootchart when testing
|
||||
(sleep 30; /sbin/bootchartd stop)&
|
||||
Reference in new issue
Block a user