From 87132356080924e00822a4b24d593e94bb18e24a Mon Sep 17 00:00:00 2001 From: Judd Vinet Date: Fri, 21 Jul 2006 19:40:00 +0000 Subject: added --directisa to hwclock calls, support for additional options in crypttab for non-LUKS partitions, fixed the WPA_OPTS varname typo in netcfg --- netcfg | 4 ++-- netfs | 4 ++-- rc.sysinit | 22 ++++++++++++---------- 3 files changed, 16 insertions(+), 14 deletions(-) diff --git a/netcfg b/netcfg index f58bfbf..f83d280 100755 --- a/netcfg +++ b/netcfg @@ -128,8 +128,8 @@ start_profile() [ $? -ne 0 ] && cat $WPA_CONF && stat_fail && return fi - [ "$WPA_OPTS" ] || WPA_OPTS="-Dwext" - wpa_supplicant -wB -i ${WIFI_INTERFACE} -c ${WPA_CONF} $WPA_OPTS + [ "$WPAOPTS" ] || WPAOPTS="-Dwext" + wpa_supplicant -wB -i ${WIFI_INTERFACE} -c ${WPA_CONF} $WPAOPTS # I donīt know how we could determine if wpa_supplicant is ready sleep 2 diff --git a/netfs b/netfs index 450f21d..105d96f 100755 --- a/netfs +++ b/netfs @@ -6,7 +6,7 @@ case "$1" in start) stat_busy "Mounting Network Filesystems" - /bin/mount -a -t nfs,smbfs,codafs,cifs + /bin/mount -a -t nfs,smbfs,codafs,cifs,shfs,fuse if [ $? -gt 0 ]; then stat_fail else @@ -16,7 +16,7 @@ case "$1" in ;; stop) stat_busy "Unmounting network filesystems" - umount -a -t nfs,smbfs,codafs,cifs + umount -a -t nfs,smbfs,codafs,cifs,shfs,fuse if [ $? -gt 0 ]; then stat_fail else diff --git a/rc.sysinit b/rc.sysinit index 29b3f77..a6399ca 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -89,7 +89,8 @@ if [ -f /etc/crypttab ]; then line=`echo $line | awk '{print $0}'` cname=`echo $line | cut -d' ' -f1` csrc=`echo $line | cut -d' ' -f2` - cpass=`echo $line | cut -d' ' -f3-` + cpass=`echo $line | cut -d' ' -f3` + copts=`echo $line | cut -d' ' -f4-` [ "$cpass" = "" ] && continue action=create @@ -101,15 +102,15 @@ if [ -f /etc/crypttab ]; then # For some fun reason, the parameter ordering varies for # LUKS and non-LUKS devices. Joy. if `$CS isLuks $csrc 2>/dev/null`; then - echo "$cpass2" | $CS luksOpen $csrc $cname >/dev/null + echo "$cpass2" | $CS $copts luksOpen $csrc $cname >/dev/null else - echo "$cpass2" | $CS create $cname $csrc >/dev/null + echo "$cpass2" | $CS $copts create $cname $csrc >/dev/null fi else if `$CS isLuks $csrc 2>/dev/null`; then - $CS -d $cpass luksOpen $csrc $cname >/dev/null + $CS -d $cpass $copts luksOpen $csrc $cname >/dev/null else - $CS -d $cpass create $cname $csrc >/dev/null + $CS -d $cpass $copts create $cname $csrc >/dev/null fi fi done /dev/null 2>&1 + /sbin/fsck -A -T -C -a -t $NETFS $FORCEFSCK >/dev/null 2>&1 else - /sbin/fsck -A -T -C -a $FORCEFSCK + /sbin/fsck -A -T -C -a -t $NETFS $FORCEFSCK fi if [ $? -gt 1 ]; then stat_fail @@ -171,16 +173,16 @@ umount /proc && mount -t proc none /proc [ "`grep sysfs /proc/filesystems`" ] && umount /sys && mount -t sysfs none /sys [ "`grep usbfs /proc/filesystems`" ] && mount -t usbfs none /proc/bus/usb # now mount all the local filesystems -/bin/mount -a -t nonfs,nosmbfs,nocifs,noncpfs,nosysfs,nousbfs +/bin/mount -a -t $NETFS stat_done status "Activating Swap" /sbin/swapon -a stat_busy "Configuring System Clock" if [ "$HARDWARECLOCK" = "UTC" ]; then - /sbin/hwclock --utc --hctosys + /sbin/hwclock --directisa --utc --hctosys else - /sbin/hwclock --localtime --hctosys + /sbin/hwclock --directisa --localtime --hctosys fi if [ ! -f /var/lib/hwclock/adjtime ]; then echo "0.0 0 0.0" > /var/lib/hwclock/adjtime -- cgit v1.2.3