diff options
author | Chia-I Wu <olv@openmoko.com> | 2008-10-28 16:49:38 +0800 |
---|---|---|
committer | John Lee <john_lee@openmoko.org> | 2009-01-12 14:29:03 +0800 |
commit | 321b7dc88878ff24a48065048e01957d440a81c5 (patch) | |
tree | bcc1f0efb06afb662e250a45b83585870413eb30 /packages/initscripts/initscripts-1.0 | |
parent | 0cd7f559c01c45f5fc287e533b7456fc2ba79cb9 (diff) |
fastboot: initscripts-openmoko: Replacement for initscripts.
Move the common files into 'files' dir and keep Openmoko specific
files under initscripts-openmoko. 'finish' was renamed to
'finish.sh', so various recipes have to be modified as well.
Diffstat (limited to 'packages/initscripts/initscripts-1.0')
-rw-r--r-- | packages/initscripts/initscripts-1.0/arm/alignment.sh | 6 | ||||
-rw-r--r-- | packages/initscripts/initscripts-1.0/devpts | 5 | ||||
-rwxr-xr-x | packages/initscripts/initscripts-1.0/finish | 6 | ||||
-rw-r--r-- | packages/initscripts/initscripts-1.0/functions | 17 | ||||
-rwxr-xr-x | packages/initscripts/initscripts-1.0/halt | 25 | ||||
-rwxr-xr-x | packages/initscripts/initscripts-1.0/hostname.sh | 11 | ||||
-rwxr-xr-x | packages/initscripts/initscripts-1.0/reboot | 11 | ||||
-rwxr-xr-x | packages/initscripts/initscripts-1.0/rmnologin | 14 | ||||
-rw-r--r-- | packages/initscripts/initscripts-1.0/save-rtc.sh | 5 | ||||
-rwxr-xr-x | packages/initscripts/initscripts-1.0/sendsigs | 17 | ||||
-rwxr-xr-x | packages/initscripts/initscripts-1.0/umountfs | 18 | ||||
-rwxr-xr-x | packages/initscripts/initscripts-1.0/umountnfs.sh | 28 | ||||
-rw-r--r-- | packages/initscripts/initscripts-1.0/volatiles | 40 |
13 files changed, 0 insertions, 203 deletions
diff --git a/packages/initscripts/initscripts-1.0/arm/alignment.sh b/packages/initscripts/initscripts-1.0/arm/alignment.sh deleted file mode 100644 index 32a9eaace2..0000000000 --- a/packages/initscripts/initscripts-1.0/arm/alignment.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -if [ -e /proc/cpu/alignment ] && ! [ $(uname -m) = "armv7l" ]; then - echo "3" > /proc/cpu/alignment -fi - diff --git a/packages/initscripts/initscripts-1.0/devpts b/packages/initscripts/initscripts-1.0/devpts deleted file mode 100644 index 4a0978b404..0000000000 --- a/packages/initscripts/initscripts-1.0/devpts +++ /dev/null @@ -1,5 +0,0 @@ -# GID of the `tty' group -TTYGRP=5 - -# Set to 600 to have `mesg n' be the default -TTYMODE=620 diff --git a/packages/initscripts/initscripts-1.0/finish b/packages/initscripts/initscripts-1.0/finish deleted file mode 100755 index 4f9f75f47c..0000000000 --- a/packages/initscripts/initscripts-1.0/finish +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -if ! test -e /etc/.configured; then - > /etc/.configured -fi - diff --git a/packages/initscripts/initscripts-1.0/functions b/packages/initscripts/initscripts-1.0/functions deleted file mode 100644 index fb9a914e4d..0000000000 --- a/packages/initscripts/initscripts-1.0/functions +++ /dev/null @@ -1,17 +0,0 @@ -# -*-Shell-script-*- -# -# functions This file contains functions to be used by most or all -# shell scripts in the /etc/init.d directory. -# - -machine_id() { # return the machine ID - awk 'BEGIN { FS=": " } /Hardware/ { gsub(" ", "_", $2); print tolower($2) } ' </proc/cpuinfo -} - -killproc() { # kill the named process(es) - pid=`/bin/ps -e x | - /bin/grep $1 | - /bin/grep -v grep | - /bin/sed -e 's/^ *//' -e 's/ .*//'` - [ "$pid" != "" ] && kill $pid -} diff --git a/packages/initscripts/initscripts-1.0/halt b/packages/initscripts/initscripts-1.0/halt deleted file mode 100755 index d8cab222ca..0000000000 --- a/packages/initscripts/initscripts-1.0/halt +++ /dev/null @@ -1,25 +0,0 @@ -#! /bin/sh -# -# halt Execute the halt command. -# -# Version: @(#)halt 2.84-2 07-Jan-2002 miquels@cistron.nl -# - -PATH=/sbin:/bin:/usr/sbin:/usr/bin - -# See if we need to cut the power. -if test -x /etc/init.d/ups-monitor -then - /etc/init.d/ups-monitor poweroff -fi - -# Don't shut down drives if we're using RAID. -hddown="-h" -if grep -qs '^md.*active' /proc/mdstat -then - hddown="" -fi - -halt -d -f -i -p $hddown - -: exit 0 diff --git a/packages/initscripts/initscripts-1.0/hostname.sh b/packages/initscripts/initscripts-1.0/hostname.sh deleted file mode 100755 index 0f3d374286..0000000000 --- a/packages/initscripts/initscripts-1.0/hostname.sh +++ /dev/null @@ -1,11 +0,0 @@ -# -# hostname.sh Set hostname. -# -# Version: @(#)hostname.sh 1.10 26-Feb-2001 miquels@cistron.nl -# - -if test -f /etc/hostname -then - hostname -F /etc/hostname -fi - diff --git a/packages/initscripts/initscripts-1.0/reboot b/packages/initscripts/initscripts-1.0/reboot deleted file mode 100755 index 56278199be..0000000000 --- a/packages/initscripts/initscripts-1.0/reboot +++ /dev/null @@ -1,11 +0,0 @@ -#! /bin/sh -# -# reboot Execute the reboot command. -# -# Version: @(#)reboot 2.75 22-Jun-1998 miquels@cistron.nl -# - -PATH=/sbin:/bin:/usr/sbin:/usr/bin - -echo -n "Rebooting... " -reboot -d -f -i diff --git a/packages/initscripts/initscripts-1.0/rmnologin b/packages/initscripts/initscripts-1.0/rmnologin deleted file mode 100755 index 444145a26a..0000000000 --- a/packages/initscripts/initscripts-1.0/rmnologin +++ /dev/null @@ -1,14 +0,0 @@ -#! /bin/sh -# -# rmnologin This script removes the /etc/nologin file as the last -# step in the boot process. -# -# Version: @(#)rmnologin 1.00 22-Jun-1998 miquels@cistron.nl -# - -if test -f /etc/nologin.boot -then - rm -f /etc/nologin /etc/nologin.boot -fi - -: exit 0 diff --git a/packages/initscripts/initscripts-1.0/save-rtc.sh b/packages/initscripts/initscripts-1.0/save-rtc.sh deleted file mode 100644 index e786073051..0000000000 --- a/packages/initscripts/initscripts-1.0/save-rtc.sh +++ /dev/null @@ -1,5 +0,0 @@ -#! /bin/sh -/etc/init.d/hwclock.sh stop - -# Update the timestamp -date +%2m%2d%2H%2M%Y > /etc/timestamp diff --git a/packages/initscripts/initscripts-1.0/sendsigs b/packages/initscripts/initscripts-1.0/sendsigs deleted file mode 100755 index c62a5cd37d..0000000000 --- a/packages/initscripts/initscripts-1.0/sendsigs +++ /dev/null @@ -1,17 +0,0 @@ -#! /bin/sh -# -# sendsigs Kill all remaining processes. -# -# Version: @(#)sendsigs 2.75 22-Jun-1998 miquels@cistron.nl -# - -PATH=/sbin:/bin:/usr/sbin:/usr/bin - -# Kill all processes. -echo "Sending all processes the TERM signal..." -killall5 -15 -sleep 5 -echo "Sending all processes the KILL signal..." -killall5 -9 - -: exit 0 diff --git a/packages/initscripts/initscripts-1.0/umountfs b/packages/initscripts/initscripts-1.0/umountfs deleted file mode 100755 index ec75b0c4a4..0000000000 --- a/packages/initscripts/initscripts-1.0/umountfs +++ /dev/null @@ -1,18 +0,0 @@ -#! /bin/sh -# -# umountfs Turn off swap and unmount all local filesystems. -# - -PATH=/sbin:/bin:/usr/sbin:/usr/bin - -echo "Deactivating swap..." -swapoff -a - -# We leave /proc mounted. -echo "Unmounting local filesystems..." -mount -o remount,ro /mnt/ram -umount -f -a -r - -mount -o remount,ro / - -: exit 0 diff --git a/packages/initscripts/initscripts-1.0/umountnfs.sh b/packages/initscripts/initscripts-1.0/umountnfs.sh deleted file mode 100755 index f5fe48aa74..0000000000 --- a/packages/initscripts/initscripts-1.0/umountnfs.sh +++ /dev/null @@ -1,28 +0,0 @@ -#! /bin/sh -# -# umountnfs.sh Unmount all network filesystems. -# - -PATH=/sbin:/bin:/usr/sbin:/usr/bin - -# Write a reboot record to /var/log/wtmp before unmounting -halt -w - -echo "Unmounting remote filesystems..." - -test -f /etc/fstab && ( - -# -# Read through fstab line by line and unount network file systems -# -while read device mountpt fstype options -do - if test "$fstype" = nfs || test "$fstype" = smbfs || test "$fstype" = ncpfs - then - umount -f $mountpt - fi -done -) < /etc/fstab - -: exit 0 - diff --git a/packages/initscripts/initscripts-1.0/volatiles b/packages/initscripts/initscripts-1.0/volatiles deleted file mode 100644 index fbcc858226..0000000000 --- a/packages/initscripts/initscripts-1.0/volatiles +++ /dev/null @@ -1,40 +0,0 @@ -# This configuration file lists filesystem objects that should get verified -# during startup and be created if missing. -# -# Every line must either be a comment starting with # -# or a definition of format: -# <type> <owner> <group> <mode> <path> <linksource> -# where the items are separated by whitespace ! -# -# <type> : d|f|l : (d)irectory|(f)ile|(l)ink -# -# A linking example: -# l root root 0777 /var/test /tmp/testfile -# f root root 0644 /var/test none -# -# Understanding links: -# When populate-volatile is to verify/create a directory or file, it will first -# check it's existence. If a link is found to exist in the place of the target, -# the path of the target is replaced with the target the link points to. -# Thus, if a link is in the place to be verified, the object will be created -# in the place the link points to instead. -# This explains the order of "link before object" as in the example above, where -# a link will be created at /var/test pointing to /tmp/testfile and due to this -# link the file defined as /var/test will actually be created as /tmp/testfile. -d root root 0755 /var/volatile/cache none -d root root 1777 /var/volatile/lock none -d root root 0755 /var/volatile/log none -d root root 0755 /var/volatile/run none -d root root 1777 /var/volatile/tmp none -l root root 0755 /var/cache /var/volatile/cache -l root root 1777 /var/lock /var/volatile/lock -l root root 0755 /var/log /var/volatile/log -l root root 0755 /var/run /var/volatile/run -l root root 1777 /var/tmp /var/volatile/tmp -d root root 0755 /var/lock/subsys none -f root root 0664 /var/log/wtmp none -f root root 0644 /var/log/lastlog none -f root root 0664 /var/run/utmp none -l root root 0644 /etc/resolv.conf /var/run/resolv.conf -f root root 0644 /var/run/resolv.conf none - |