summaryrefslogtreecommitdiffstats
path: root/target/device/valka/target_skeleton/etc/rc.d
diff options
context:
space:
mode:
Diffstat (limited to 'target/device/valka/target_skeleton/etc/rc.d')
-rwxr-xr-xtarget/device/valka/target_skeleton/etc/rc.d/00.virtualfs24
-rwxr-xr-xtarget/device/valka/target_skeleton/etc/rc.d/01.mdev23
-rwxr-xr-xtarget/device/valka/target_skeleton/etc/rc.d/02.localfs22
-rwxr-xr-xtarget/device/valka/target_skeleton/etc/rc.d/03.hostname25
-rwxr-xr-xtarget/device/valka/target_skeleton/etc/rc.d/04.syslog24
-rwxr-xr-xtarget/device/valka/target_skeleton/etc/rc.d/05.klog24
-rwxr-xr-xtarget/device/valka/target_skeleton/etc/rc.d/06.modules31
-rwxr-xr-xtarget/device/valka/target_skeleton/etc/rc.d/10.network32
-rwxr-xr-xtarget/device/valka/target_skeleton/etc/rc.d/11.ntpdate24
-rwxr-xr-xtarget/device/valka/target_skeleton/etc/rc.d/crond27
-rwxr-xr-xtarget/device/valka/target_skeleton/etc/rc.d/dropbear37
-rwxr-xr-xtarget/device/valka/target_skeleton/etc/rc.d/gpio34
-rwxr-xr-xtarget/device/valka/target_skeleton/etc/rc.d/inetd27
-rwxr-xr-xtarget/device/valka/target_skeleton/etc/rc.d/lighttpd17
-rwxr-xr-xtarget/device/valka/target_skeleton/etc/rc.d/nbd_swap31
-rwxr-xr-xtarget/device/valka/target_skeleton/etc/rc.d/ntpd24
-rwxr-xr-xtarget/device/valka/target_skeleton/etc/rc.d/onewire34
-rwxr-xr-xtarget/device/valka/target_skeleton/etc/rc.d/portmap31
18 files changed, 0 insertions, 491 deletions
diff --git a/target/device/valka/target_skeleton/etc/rc.d/00.virtualfs b/target/device/valka/target_skeleton/etc/rc.d/00.virtualfs
deleted file mode 100755
index 6c1a627a8..000000000
--- a/target/device/valka/target_skeleton/etc/rc.d/00.virtualfs
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/ash
-. /etc/rc.subr
-
-start() {
- echo -n " * Mounting virtual filesystems:"
- mount_fs proc /proc proc
- mount_fs sys /sys sysfs
- mount_fs config /config configfs
- mount_fs tmp /tmp tmpfs
- mount_fs run /var/run tmpfs
- mkdir_fs /var/run/lock
- if mount_fs dev /dev tmpfs "size=512k,mode=0755"; then
- mkdir_fs /dev/pts
- mkdir_fs /dev/shm
- fi
- mount_fs ptr /dev/pts devpts
- echo ""
-}
-
-stop() {
- return 0
-}
-
-rc_run_command "$1"
diff --git a/target/device/valka/target_skeleton/etc/rc.d/01.mdev b/target/device/valka/target_skeleton/etc/rc.d/01.mdev
deleted file mode 100755
index a9a2da7c3..000000000
--- a/target/device/valka/target_skeleton/etc/rc.d/01.mdev
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/ash
-. /etc/rc.subr
-
-start() {
- echo -n " * Starting mdev: "
- set -e
- trap 'echo "Failed"' EXIT
- ${ln_program} -s /proc/self/fd /dev/fd
- ${ln_program} -s /proc/self/fd/0 /dev/stdin
- ${ln_program} -s /proc/self/fd/1 /dev/stdout
- ${ln_program} -s /proc/self/fd/2 /dev/stderr
- ${ln_program} -s /proc/kcore /dev/core
- echo /sbin/mdev > /proc/sys/kernel/hotplug
- ${mdev_program} ${mdev_flags}
- trap - EXIT
- echo "Ok"
-}
-
-stop() {
- return 0;
-}
-
-rc_run_command "$1"
diff --git a/target/device/valka/target_skeleton/etc/rc.d/02.localfs b/target/device/valka/target_skeleton/etc/rc.d/02.localfs
deleted file mode 100755
index 2614d020f..000000000
--- a/target/device/valka/target_skeleton/etc/rc.d/02.localfs
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/ash
-. /etc/rc.subr
-
-start() {
- echo -n " * Mounting local filesystems: "
- if ${mount_program} -a; then
- echo "Ok"
- else
- echo "Failed"
- fi
-}
-
-stop() {
- echo -n " * Unmounting local filesystems: "
- if ${umount_program} -a 2>/dev/null; then
- echo "Ok"
- else
- echo "Failed"
- fi
-}
-
-rc_run_command "$1"
diff --git a/target/device/valka/target_skeleton/etc/rc.d/03.hostname b/target/device/valka/target_skeleton/etc/rc.d/03.hostname
deleted file mode 100755
index 5cbae3f78..000000000
--- a/target/device/valka/target_skeleton/etc/rc.d/03.hostname
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/ash
-. /etc/rc.subr
-
-start() {
- echo -n " * Settings hostname: "
- if [ ! -x ${hostname_program} ]; then
- log_error "Missing 'hostname' program (${hostname_program})"
- echo "Failed"
- return 1
- fi
-
- if ${hostname_program} ${hostname}; then
- echo "'${hostname}'"
- echo ${hostname} > /etc/hostname
- else
- echo "Failed"
- return 1
- fi
-}
-
-stop() {
- return 0
-}
-
-rc_run_command "$1"
diff --git a/target/device/valka/target_skeleton/etc/rc.d/04.syslog b/target/device/valka/target_skeleton/etc/rc.d/04.syslog
deleted file mode 100755
index b00347085..000000000
--- a/target/device/valka/target_skeleton/etc/rc.d/04.syslog
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/ash
-. /etc/rc.subr
-
-start() {
- echo -n " * Starting syslogd: "
- if [ ! -x ${syslogd_program} ]; then
- log_error "Missing 'syslogd' program (${syslogd_program})"
- echo "Failed"
- return 1
- fi
-
- if ${syslogd_program}; then
- echo "Ok"
- else
- echo "Failed"
- exit 1
- fi
-}
-
-stop() {
- return 0
-}
-
-rc_run_command "$1"
diff --git a/target/device/valka/target_skeleton/etc/rc.d/05.klog b/target/device/valka/target_skeleton/etc/rc.d/05.klog
deleted file mode 100755
index 1d018392f..000000000
--- a/target/device/valka/target_skeleton/etc/rc.d/05.klog
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/ash
-. /etc/rc.subr
-
-start() {
- echo -n " * Starting klogd: "
- if [ ! -x ${klogd_program} ]; then
- log_error "Missing 'klogd' program (${klogd_program})"
- echo "Failed"
- return 1
- fi
-
- if ${klogd_program}; then
- echo "Ok"
- else
- echo "Failed "
- exit 1
- fi
-}
-
-stop() {
- return 0
-}
-
-rc_run_command "$1"
diff --git a/target/device/valka/target_skeleton/etc/rc.d/06.modules b/target/device/valka/target_skeleton/etc/rc.d/06.modules
deleted file mode 100755
index af800d4d3..000000000
--- a/target/device/valka/target_skeleton/etc/rc.d/06.modules
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/ash
-. /etc/rc.subr
-
-start() {
- if checkyesno ${modules_enable}; then
- if [ ! -x "${modprobe_program}" -o ! -f "/etc/modules" ]; then
- echo "Missing 'modprobe_program' program (${modprobe_program})"
- exit 1
- else
- echo
- fi
-
- echo -n "Loading modules: "
- grep '^[^#]' "/etc/modules" | \
- while read module args; do
- [ "$module" ] || continue
- if ${modprobe_program} $module $args; then
- echo -n "$module "
- else
- echo -n "$module=failed "
- fi
- done
- echo ""
- fi
-}
-
-stop() {
- return 0
-}
-
-rc_run_command "$1"
diff --git a/target/device/valka/target_skeleton/etc/rc.d/10.network b/target/device/valka/target_skeleton/etc/rc.d/10.network
deleted file mode 100755
index ebe092a0e..000000000
--- a/target/device/valka/target_skeleton/etc/rc.d/10.network
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/ash
-. /etc/rc.subr
-
-start() {
- echo -n " * Network interfaces: "
- if checkyesno ${eth0_enable}; then
- if ${ifup_program} eth0 > /dev/null 2>&1; then
- echo -n "eth0 "
- else
- echo -n "eth0=failed "
- fi
- fi
- if checkyesno ${eth1_enable}; then
- if ${ifup_program} eth1 > /dev/null 2>&1; then
- echo -n "eth1"
- else
- echo -n "eth1=failed"
- fi
- fi
- echo ""
-}
-
-stop() {
- echo -n " * Stopping network interfaces: "
- if ${ifdown_program} -fa > /dev/null 2>&1; then
- echo "Ok"
- else
- echo "Failed"
- fi
-}
-
-rc_run_command "$1"
diff --git a/target/device/valka/target_skeleton/etc/rc.d/11.ntpdate b/target/device/valka/target_skeleton/etc/rc.d/11.ntpdate
deleted file mode 100755
index 94f2626d1..000000000
--- a/target/device/valka/target_skeleton/etc/rc.d/11.ntpdate
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/ash
-. /etc/rc.subr
-
-start() {
- echo -n " * Running ntpdate: "
- if [ ! -x ${ntpdate_program} ]; then
- log_error "Missing 'ntpdate' program (${ntpdate_program})"
- echo "Failed"
- return 1
- fi
-
- if ${ntpdate_program} ${ntpdate_flags} ${ntpdate_servers} > /dev/null 2>&1; then
- echo "Ok"
- else
- echo "Failed"
- exit 1
- fi
-}
-
-stop() {
- return 0
-}
-
-rc_run_command "$1" "ntpdate"
diff --git a/target/device/valka/target_skeleton/etc/rc.d/crond b/target/device/valka/target_skeleton/etc/rc.d/crond
deleted file mode 100755
index ef1b7fee0..000000000
--- a/target/device/valka/target_skeleton/etc/rc.d/crond
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/ash
-. /etc/rc.subr
-
-start() {
- echo -n " * Starting crond: "
- if [ ! -x ${crond_program} ]; then
- log_error "Missing 'crond' program (${crond_program})"
- echo "Failed"
- return 1
- fi
-
- ${crond_program} -f -c ${crond_dir} ${crond_flags} &
- pid=$!
- if [ "$?" -eq 0 ]; then
- echo "${pid}" > ${crond_pidfile}
- echo "Ok"
- else
- echo "Failed"
- fi
-}
-
-stop() {
- echo " * Stopping crond..."
- killpid ${crond_pidfile}
-}
-
-rc_run_command "$1" "crond"
diff --git a/target/device/valka/target_skeleton/etc/rc.d/dropbear b/target/device/valka/target_skeleton/etc/rc.d/dropbear
deleted file mode 100755
index 0868b2acf..000000000
--- a/target/device/valka/target_skeleton/etc/rc.d/dropbear
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/sh
-. /etc/rc.subr
-
-start() {
- if [ ! -d /etc/dropbear ]; then
- if ! mkdir_fs /etc/dropbear; then
- return 1
- fi
- fi
-
- # Check for the Dropbear RSA key
- if [ ! -f /etc/dropbear/dropbear_rsa_host_key ] ; then
- echo -n " * Generating SSH RSA Key: "
- ${dropbearkey_program} -t rsa -f /etc/dropbear/dropbear_rsa_host_key > /dev/null 2>&1
- echo "Ok"
- fi
-
- # Check for the Dropbear DSS key
- if [ ! -f /etc/dropbear/dropbear_dss_host_key ] ; then
- echo -n " * Generating SSH DSS Key: "
- ${dropbearkey_program} -t dss -f /etc/dropbear/dropbear_dss_host_key > /dev/null 2>&1
- echo "Ok"
- fi
-
- echo -n " * Starting dropbear sshd: "
- if ${dropbear_program} -P ${dropbear_pidfile} ${dropbear_flags}; then
- echo "Ok"
- else
- echo "Failed"
- fi
-}
-stop() {
- echo " * Stopping dropbear sshd..."
- killpid "${dropbear_pidfile}"
-}
-
-rc_run_command "$1" "dropbear"
diff --git a/target/device/valka/target_skeleton/etc/rc.d/gpio b/target/device/valka/target_skeleton/etc/rc.d/gpio
deleted file mode 100755
index 39eb74dcc..000000000
--- a/target/device/valka/target_skeleton/etc/rc.d/gpio
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/ash
-. /etc/rc.subr
-
-start() {
- echo -n " * Setting up GPIO: "
-
- if ! create_gpio "io0" 1 0x03f8802a 0x03f88000; then
- log_error "io0 failed"
- echo "failed"
- return 1
- fi
- if ! create_gpio "io1" 0 0xaa800000 0x00000000; then
- log_error "io1 failed"
- echo "failed"
- return 1
- fi
- echo "Ok"
-}
-
-stop() {
- return 0
-}
-
-create_gpio() {
- if ! mkdir_fs /config/gpio/${1}; then
- return 1
- fi
- echo "${2}" > /config/gpio/${1}/gpio_id
- echo "${3}" > /config/gpio/${1}/pin_mask
- echo "${4}" > /config/gpio/${1}/oe_mask
- echo "1" > /config/gpio/${1}/enabled
-}
-
-rc_run_command "$1" "gpio"
diff --git a/target/device/valka/target_skeleton/etc/rc.d/inetd b/target/device/valka/target_skeleton/etc/rc.d/inetd
deleted file mode 100755
index f0d8d8452..000000000
--- a/target/device/valka/target_skeleton/etc/rc.d/inetd
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/ash
-. /etc/rc.subr
-
-start() {
- echo -n " * Starting inetd: "
- if [ ! -x ${inetd_program} ]; then
- log_error "Missing 'inetd' program (${inetd_program})"
- echo "Failed"
- return 1
- fi
-
- ${inetd_program} -f ${inetd_flags} &
- pid=$!
- if [ "$?" -eq 0 ]; then
- echo "${pid}" > ${inetd_pidfile}
- echo "Ok"
- else
- echo "Failed"
- fi
-}
-
-stop() {
- echo " * Stopping inetd..."
- killpid ${inetd_pidfile}
-}
-
-rc_run_command "$1" "inetd"
diff --git a/target/device/valka/target_skeleton/etc/rc.d/lighttpd b/target/device/valka/target_skeleton/etc/rc.d/lighttpd
deleted file mode 100755
index 97ff2f46a..000000000
--- a/target/device/valka/target_skeleton/etc/rc.d/lighttpd
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-. /etc/rc.subr
-
-start() {
- echo -n " * Starting lighttpd: "
- if ${lighttpd_program} ${lighttpd_flags}; then
- echo "Ok"
- else
- echo "Failed"
- fi
-}
-stop() {
- echo " * Stopping lighttpd..."
- killpid "${lighttpd_pidfile}"
-}
-
-rc_run_command "$1" "lighttpd"
diff --git a/target/device/valka/target_skeleton/etc/rc.d/nbd_swap b/target/device/valka/target_skeleton/etc/rc.d/nbd_swap
deleted file mode 100755
index b2a4a9c25..000000000
--- a/target/device/valka/target_skeleton/etc/rc.d/nbd_swap
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/ash
-. /etc/rc.subr
-
-start() {
- echo -n " * Starting nbd swap: "
- if [ ! -x ${nbd_swap_program} ]; then
- log_error "Missing 'nbd_client' program (${nbd_swap_program})"
- echo "Failed"
- return 1
- fi
-
- mknod ${nbd_swap_device} b 43 0
- ${nbd_swap_program} ${nbd_swap_server} ${nbd_swap_port} ${nbd_swap_device} &
- pid=$!
- if [ "$?" -eq 0 ]; then
- echo "${pid}" > ${nbd_swap_pidfile}
- mkswap ${nbd_swap_device}
- swapon ${nbd_swap_device}
- echo "Ok"
- else
- echo "Failed"
- fi
-}
-
-stop() {
- echo " * Stopping nbd swap..."
- swapoff ${nbd_swap_device}
- killpid ${nbd_swap_pidfile}
-}
-
-rc_run_command "$1" "nbd_swap"
diff --git a/target/device/valka/target_skeleton/etc/rc.d/ntpd b/target/device/valka/target_skeleton/etc/rc.d/ntpd
deleted file mode 100755
index 291da6317..000000000
--- a/target/device/valka/target_skeleton/etc/rc.d/ntpd
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/ash
-. /etc/rc.subr
-
-start() {
- if [ ! -x ${ntpd_program} ]; then
- log_error "Missing 'ntpd' program (${ntpd_program})"
- echo "Failed"
- return 1
- fi
-
- echo -n " * Starting ntpd: "
- if ${ntpd_program} -c ${ntpd_config} -p ${ntpd_pidfile} ${ntpd_flags}; then
- echo "Ok"
- else
- echo "Failed"
- fi
-}
-
-stop() {
- echo " * Stopping ntpd..."
- killpid ${ntpd_pidfile}
-}
-
-rc_run_command "$1" "ntpd"
diff --git a/target/device/valka/target_skeleton/etc/rc.d/onewire b/target/device/valka/target_skeleton/etc/rc.d/onewire
deleted file mode 100755
index 332215463..000000000
--- a/target/device/valka/target_skeleton/etc/rc.d/onewire
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/ash
-. /etc/rc.subr
-
-start() {
- if checkyesno ${onewire_thermal_enable}; then
- echo -n " * Loading 1wire thermal module: "
- if ${modprobe_program} w1_therm; then
- echo "Ok"
- else
- echo "Failed"
- fi
- fi
- if checkyesno ${onewire_id_enable}; then
- echo -n " * Loading 1wire id module: "
- if ${modprobe_program} w1_ds2433; then
- echo "Ok"
- else
- echo "Failed"
- fi
- fi
-
- echo -n " * Loading 1wire module: "
- if ${modprobe_program} ds2482 force=0,0x18; then
- echo "Ok"
- else
- echo "Failed"
- fi
-}
-
-stop() {
- return 0
-}
-
-rc_run_command "$1" "onewire"
diff --git a/target/device/valka/target_skeleton/etc/rc.d/portmap b/target/device/valka/target_skeleton/etc/rc.d/portmap
deleted file mode 100755
index 12a7dc912..000000000
--- a/target/device/valka/target_skeleton/etc/rc.d/portmap
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-. /etc/rc.subr
-
-start() {
- if checkyesno ${portmap_enable}; then
- if [ ! -x ${portmap_program} ]; then
- log_error "Missing 'portmap' program (${portmap_program})"
- echo "Failed"
- return 1
- fi
-
- echo -n " * Starting portmap: "
- if ${portmap_program} ${portmap_flags}; then
- mkdir -p /var/lock/subsys
- touch /var/lock/subsys/portmap
- echo "Ok"
- else
- echo "Failed"
- fi
- fi
-}
-
-
-stop() {
- echo -n " * Stopping portmap: "
- killall portmap
- rm -rf /var/lock/subsys > /dev/null 2>&1
- echo "Ok"
-}
-
-rc_run_command "$1"