6 Commits
1.2.1 ... 1.3.3

Author SHA1 Message Date
fbt
93edc4ceb7 This works properly 2014-08-09 15:17:26 +04:00
fbt
51c7ec2471 Oops 2014-08-09 14:59:12 +04:00
fbt
a57c6bd7fb switching to a makefile build 2014-08-09 14:55:26 +04:00
fbt
b7fa48d5d8 duplicate 2014-07-28 09:32:57 +04:00
fbt
25b13d5ef0 Comments! 2014-07-28 09:14:06 +04:00
fbt
48d2d826fc agettys should also start in parallel 2014-07-28 09:13:53 +04:00
4 changed files with 42 additions and 4 deletions

31
Makefile Normal file
View File

@@ -0,0 +1,31 @@
# watchman makefile
VERSION=1.6.9
# Please modify config.mk and not this
sinclude config.mk
.PHONY: clean install uninstall all
build: rc
all: build
rc: rc.in
sed -r \
-e 's%@ETC@%$(ETC)%' \
rc.in > rc
chmod 750 $@
clean:
rm rc
install: build
install -dm755 $(BINDIR)
install -dm755 $(ETCDIR)
install -m750 rc $(BINDIR)/rc
install -m644 rc.conf $(ETCDIR)/rc.conf
uninstall:
rm $(BINDIR)/rc

8
config.mk Normal file
View File

@@ -0,0 +1,8 @@
# Make config
USR ?= /usr/local
ETC ?= /etc
BIN ?= $(USR)/bin
BINDIR = $(DESTDIR)$(PREFIX)$(BIN)
ETCDIR = $(DESTDIR)$(PREFIX)$(ETC)

View File

@@ -6,11 +6,11 @@ cfg_hostname='changeme'
# Services
cfg_services+=( 'fsck' 'mount' 'systemd-udevd' 'sysctl' ) # Services that need tp be started in an order
cfg_services+=( agetty-tty{2..6} ) # Comment this if your init starts something on the ttys itself.
cfg_services+=( @agetty-tty{2..6} ) # Comment this if your init starts something on the ttys itself.
cfg_services+=( '@crond' '@network' '@dbus' '@alsa' ) # These start in parallel.
cfg_services+=( 'rc.local' ) # Traditionally, rc.local starts last.
# Modules
cfg_modules=( ) # Add modules you want to be loaded at boot time here
# Make C-A-D perform a soft reset

View File

@@ -144,7 +144,7 @@ rc.modules() {
}
rc.main() {
source "/etc/rc.conf"
source "@ETC@/rc.conf"
action="${1:-boot}"
@@ -156,7 +156,6 @@ rc.main() {
poweroff|reboot|shutdown)
rc.shutdown
rc.halt
;;
esac
}