diff options
author | Bruno Randolf <br1@subnet.at> | 2004-09-23 09:55:31 +0000 |
---|---|---|
committer | Bruno Randolf <br1@subnet.at> | 2004-09-23 09:55:31 +0000 |
commit | 5bac22ce6fe95c9608604d5a91a923fdf5777b5e (patch) | |
tree | f2d8b2530cae0218f22216041e1da231dfad1233 /busybox/busybox-1.00-rc1 | |
parent | 8a20381d18a348fb5445be117cda24241f2fc3ea (diff) |
Merge bk://openembedded@openembedded.bkbits.net/packages
into null.(none):/data/mtx/oe/oe.write/packages
2004/09/23 11:55:05+02:00 (none)!br1
moved nylon defconfig into busybox-1.00-rc3
added init scripts for cron and httpd
moved init scripts into files/
BKrev: 41529d931m_9LTwcHDj4AF1Og5T-BQ
Diffstat (limited to 'busybox/busybox-1.00-rc1')
-rw-r--r-- | busybox/busybox-1.00-rc1/hwclock.sh | 74 | ||||
-rw-r--r-- | busybox/busybox-1.00-rc1/postinst | 25 | ||||
-rw-r--r-- | busybox/busybox-1.00-rc1/prerm | 10 | ||||
-rw-r--r-- | busybox/busybox-1.00-rc1/syslog | 34 |
4 files changed, 0 insertions, 143 deletions
diff --git a/busybox/busybox-1.00-rc1/hwclock.sh b/busybox/busybox-1.00-rc1/hwclock.sh deleted file mode 100644 index 5acfb9fb24..0000000000 --- a/busybox/busybox-1.00-rc1/hwclock.sh +++ /dev/null @@ -1,74 +0,0 @@ -#!/bin/sh -# hwclock.sh Set system clock to hardware clock, according to the UTC -# setting in /etc/default/rcS (see also rcS(5)). -# -# WARNING: If your hardware clock is not in UTC/GMT, this script -# must know the local time zone. This information is -# stored in /etc/localtime. This might be a problem if -# your /etc/localtime is a symlink to something in -# /usr/share/zoneinfo AND /usr isn't in the root -# partition! The workaround is to define TZ either -# in /etc/default/rcS, or in the proper place below. - -[ ! -x /sbin/hwclock ] && exit 0 - -. /etc/default/rcS - -case "$1" in - start) - if [ "$VERBOSE" != no ] - then - echo "System time was `date`." - echo "Setting the System Clock using the Hardware Clock as reference..." - fi - - if [ "$HWCLOCKACCESS" != no ] - then - if [ -z "$TZ" ] - then - hwclock --hctosys - else - TZ="$TZ" hwclock --hctosys - fi - fi - - if [ "$VERBOSE" != no ] - then - echo "System Clock set. System local time is now `date`." - fi - ;; - stop|restart|reload|force-reload) - # - # Updates the Hardware Clock with the System Clock time. - # This will *override* any changes made to the Hardware Clock. - # - # WARNING: If you disable this, any changes to the system - # clock will not be carried across reboots. - # - if [ "$VERBOSE" != no ] - then - echo "Saving the System Clock time to the Hardware Clock..." - fi - if [ "$HWCLOCKACCESS" != no ] - then - hwclock --systohc - fi - if [ "$VERBOSE" != no ] - then - echo "Hardware Clock updated to `date`." - fi - exit 0 - ;; - show) - if [ "$HWCLOCKACCESS" != no ] - then - hwclock --show - fi - ;; - *) - echo "Usage: hwclock.sh {start|stop|show|reload|restart}" >&2 - echo " start sets kernel (system) clock from hardware (RTC) clock" >&2 - echo " stop and reload set hardware (RTC) clock from kernel (system) clock" >&2 - exit 1 - ;; -esac diff --git a/busybox/busybox-1.00-rc1/postinst b/busybox/busybox-1.00-rc1/postinst deleted file mode 100644 index 36d8190f80..0000000000 --- a/busybox/busybox-1.00-rc1/postinst +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/busybox ash - -action="$1" -oldversion="$2" - -umask 022 - -if /bin/busybox [ "$action" != configure ] -then - exit 0 -fi - -. /etc/default/functions - -setup_init_hwclock() { - updatercd hwclock.sh start 50 S . stop 25 0 1 6 . - /etc/init.d/hwclock.sh restart -} - -/bin/busybox ash /usr/bin/update-alternatives --install /bin/vi vi /bin/busybox 100 -/bin/busybox ash /usr/bin/update-alternatives --install /bin/sh sh /bin/busybox 100 - -setup_init_hwclock - -exit 0 diff --git a/busybox/busybox-1.00-rc1/prerm b/busybox/busybox-1.00-rc1/prerm deleted file mode 100644 index 7ade4b1dec..0000000000 --- a/busybox/busybox-1.00-rc1/prerm +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -if [ "$1" != "upgrade" ]; then - update-alternatives --remove sh /bin/busybox - update-alternatives --remove vi /bin/busybox - find /etc -name [SK][0-9][0-9]hwclock.sh | xargs rm -f - find /etc -name [SK][0-9][0-9]syslog | xargs rm -f -fi - -exit 0 diff --git a/busybox/busybox-1.00-rc1/syslog b/busybox/busybox-1.00-rc1/syslog deleted file mode 100644 index 5c46a28a9a..0000000000 --- a/busybox/busybox-1.00-rc1/syslog +++ /dev/null @@ -1,34 +0,0 @@ -#! /bin/sh -# -# syslog init.d script for busybox syslogd/klogd -# Written by Robert Griebl <sandman@handhelds.org> -# - -# log to remote host -# SYSLOG_ARGS="-R remote.host" - -# log to 16K shm circular buffer -SYSLOG_ARGS="-C" - -set -e - -case "$1" in - start) - echo -n "Starting syslogd/klogd: " - start-stop-daemon -S -b -n syslogd -a /sbin/syslogd -- -n $SYSLOG_ARGS - start-stop-daemon -S -b -n klogd -a /sbin/klogd -- -n - echo "done" - ;; - stop) - echo -n "Stopping syslogd/klogd: " - start-stop-daemon -K -n syslogd - start-stop-daemon -K -n klogd - echo "done" - ;; - *) - echo "Usage: syslog {start|stop}" >&2 - exit 1 - ;; -esac - -exit 0 |