move busybox init scripts from base-files into the busybox package and make them depend on busybox menuconfig options

SVN-Revision: 5620
This commit is contained in:
Felix Fietkau
2006-11-22 23:06:40 +00:00
parent 392966798b
commit bd8e5fb7db
4 changed files with 9 additions and 0 deletions

View File

@@ -1,12 +0,0 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
start () {
mkdir -p /var/spool/cron
[ -L /var/spool/cron/crontabs ] || ln -s /etc/crontabs /var/spool/cron/crontabs
crond -c /etc/crontabs
}
stop() {
killall crond
}

View File

@@ -1,13 +0,0 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
start() {
include /lib/network
scan_interfaces
config_get ifname wan hostname
[ -d /www ] && httpd -p 80 -h /www -r ${hostname:-OpenWrt}
}
stop() {
killall httpd
}

View File

@@ -1,10 +0,0 @@
#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
start() {
if awk -F: '/^root:/ && $2 !~ /\!/ {exit 1}' /etc/passwd 2>/dev/null && [ -x /usr/sbin/dropbear ]; then telnetd -l /bin/login; fi
}
stop() {
killall telnetd
}