diff options
author | Judd Vinet <judd@archlinux.org> | 2006-07-21 19:40:00 +0000 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2006-07-21 19:40:00 +0000 |
commit | 87132356080924e00822a4b24d593e94bb18e24a (patch) | |
tree | 3edab7da03b09452100c29066f9628cfc8de3368 | |
parent | 8d214daab85c043f87ed21912b68172cc0e33635 (diff) |
added --directisa to hwclock calls, support for additional options in crypttab for non-LUKS partitions, fixed the WPA_OPTS varname typo in netcfg
-rwxr-xr-x | netcfg | 4 | ||||
-rwxr-xr-x | netfs | 4 | ||||
-rwxr-xr-x | rc.sysinit | 22 |
3 files changed, 16 insertions, 14 deletions
@@ -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 @@ -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 @@ -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 </etc/crypttab @@ -129,13 +130,14 @@ status "Mounting Root Read-only" /bin/mount -n -o remount,ro / FORCEFSCK= [ -f /forcefsck ] && FORCEFSCK="-- -f" +NETFS="nonfs,nosmbfs,nocifs,nocodafs,noncpfs,nosysfs,nousbfs,noshfs,nofuse" if [ -x /sbin/fsck ]; then stat_busy "Checking Filesystems" if [ "`cat /proc/cmdline | grep quiet`" ]; then - /sbin/fsck -A -T -C -a $FORCEFSCK >/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 |