diff options
author | Judd Vinet <judd@archlinux.org> | 2002-11-23 20:37:55 +0000 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2002-11-23 20:37:55 +0000 |
commit | 914b0b3b572a3d5d311682a88424d165589798f1 (patch) | |
tree | 04bf52c30dbce9bef5afe1b1dde4a3834028f44f | |
parent | dd4248ed74b9adce32910ee95274719249220757 (diff) |
added jk's changes: system clock is set earlier on, and modules.dep is only
updated if new modules are present.
-rwxr-xr-x | rc.sysinit | 32 |
1 files changed, 20 insertions, 12 deletions
@@ -45,10 +45,20 @@ stat_done stat_busy "Mounting Local Filesystems" /bin/mount -n -o remount,rw / -/bin/rm -f /etc/mtab* +/bin/rm -f /etc/mtab* /bin/mount -a -t nonfs stat_done +stat_busy "Configuring System Clock" +/sbin/hwclock --hctosys +if [ ! -f /etc/adjtime ]; then + echo "0.0 0 0.0" > /etc/adjtime +fi +if [ "$TIMEZONE" != "" ]; then + /bin/ln -sf /usr/share/zoneinfo/$TIMEZONE /etc/localtime +fi +stat_done + stat_busy "Removing Leftover Files" /bin/rm -f /etc/nologin &> /dev/null /bin/rm -f /etc/shutdownpid &> /dev/null @@ -69,22 +79,20 @@ status "Starting System Logger" /usr/sbin/syslogd -m 0 status "Starting Kernel Logger" /usr/sbin/klogd -c 4 -status "Updating Module Dependencies" /sbin/depmod -a +kernel_version=`uname -r` +if [ -e "/lib/modules/$kernel_version/modules.dep" ]; then + new_mods=`/usr/bin/find /lib/modules/$kernel_version -type f -newer /lib/modules/$kernel_version/modules.dep` + if [ ! -z $new_mods ]; then + status "Updating Module Dependencies" /sbin/depmod -a + fi +else + status "Updating Module Dependencies" /sbin/depmod -a +fi if [ -f /var/run/random-seed ]; then status "Initializing Random Seed" /bin/cat /var/run/random-seed > /dev/urandom fi -stat_busy "Configuring System Clock" -if [ ! -f /etc/adjtime ]; then - echo "0.0 0 0.0" > /etc/adjtime -fi -if [ "$TIMEZONE" != "" ]; then - /bin/ln -sf /usr/share/zoneinfo/$TIMEZONE /etc/localtime -fi -/sbin/hwclock --hctosys -stat_done - if [ "$KEYMAP" != "" ]; then status "Loading Keyboard Map: $KEYMAP" /bin/loadkeys -q $KEYMAP fi |