From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <004f01c09409$bbd3f2a0$1002000a@alex> From: "Zavolzhsky Alexandr" To: "Mandrake RE list" MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0043_01C09422.B5D49260" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Subject: [mdk-re] vfat Sender: mandrake-russian-admin@linuxteam.iplabs.ru Errors-To: mandrake-russian-admin@linuxteam.iplabs.ru X-BeenThere: mandrake-russian@linuxteam.iplabs.ru X-Mailman-Version: 2.0 Precedence: bulk Reply-To: mandrake-russian@linuxteam.iplabs.ru List-Help: List-Post: List-Subscribe: , List-Id: Mandrake/RE discussion list List-Unsubscribe: , List-Archive: Date: Sun Feb 11 13:00:11 2001 X-Original-Date: Sun, 11 Feb 2001 12:03:56 +0300 Archived-At: List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_0043_01C09422.B5D49260 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 8bit Привет ! Купил новый компьютер и поставил на него Mandrake 7.0 RE. Есть одна странная проблема. Если из линуска пишу файл в раздел Windows (vfat), то Windows 2000 его не видит, загружаю линукс - файл есть. Проверял раздел Windows с помощью Norton Disk Doctor - находит потерянные кластеры. Под виндой с записью файлов все ОК. Компьютер - Abit BX133 RAID (контроллер HPT370 отключен), Celeron 600, 128Mb PC133 RAM, жесткий диск - Fujitsu MPF3204AT. Процессор не разогнанный. Это можно как-то побороть, а то файлы между линуксом и виндоус приходится на дискетах переносить. Александр ------=_NextPart_000_0043_01C09422.B5D49260 Content-Type: application/octet-stream; name="fstab" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="fstab" /dev/hda1 /mnt/c: vfat = user,umask=3D002,noexec,uid=3D1000,gid=3D1000,iocharset=3Dkoi8-r,conv=3Db= inary 0 0=0A= /dev/hda5 /mnt/d: vfat = user,umask=3D002,noexec,uid=3D1000,gid=3D1000,iocharset=3Dkoi8-r,conv=3Db= inary 0 0=0A= /dev/hda6 / ext2 defaults = 1 1=0A= /dev/hda7 swap swap defaults = 0 0=0A= /mnt/cdrom /mnt/cdrom supermount = fs=3Diso9660,dev=3D/dev/cdrom,--,umask=3D002,noexec,uid=3D1000,gid=3D1000= ,iocharset=3Dkoi8-r 0 0=0A= /mnt/floppy /mnt/floppy supermount = fs=3Dvfat,dev=3D/dev/fd0,--,umask=3D002,noexec,uid=3D1000,gid=3D1000,ioch= arset=3Dkoi8-r 0 0=0A= none /dev/pts devpts mode=3D0620 0 0=0A= none /proc proc defaults 0 0=0A= ------=_NextPart_000_0043_01C09422.B5D49260 Content-Type: application/octet-stream; name="mandrake_everytime" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="mandrake_everytime" #!/bin/sh=0A= # Description: Launch this Mandrake Scripts every time.=0A= # (c) MandrakeSoft, Chmouel Boudjnah =0A= . /etc/rc.d/init.d/functions=0A= =0A= [ -e /etc/sysconfig/system ] && . /etc/sysconfig/system=0A= [ -e /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n=0A= =0A= # Build KdmSession=0A= #[ -x /usr/sbin/fndSession ] && {=0A= # action "Building Window Manager Sessions" /usr/sbin/fndSession=0A= #}=0A= =0A= # Optimisation of Hard drive.=0A= #if grep -qi opti /proc/cmdline || [ -n "$HDPARM" ]; then=0A= #if [ -x /sbin/hdparm ];then=0A= #LIST_HD=3D$(grep '^hd.:' /var/log/dmesg|\=0A= # grep -ivE '(CD.*ROM|FLOPPY|TAPE|STATUS)'|cut -d: -f1|sort|uniq)=0A= #=0A= # if grep -i nohdparm /proc/cmdline >/dev/null ; then=0A= # action "Hard Drive optimisations disabled" \=0A= # echo ""=0A= # else=0A= # for i in $LIST_HD;do=0A= # action "Starting Hard Drive optimisations for $i" \=0A= # hdparm -q -c1 -q -A1 -q -m16 -q -d1 /dev/$i=0A= # done=0A= # fi=0A= #fi=0A= #fi=0A= =0A= # Disabling supermount if not here=0A= if ! grep -i linuxfix /proc/cmdline >/dev/null ; then=0A= if grep -q '^\/.*supermount.*' /etc/fstab && [ ! -e = /lib/modules/$(uname -r)/fs/supermount.o ] && [ -x /usr/bin/perl ];then=0A= action "Disabling Supermount" /usr/sbin/supermount -i disable=0A= fi=0A= fi =0A= =0A= # check if /etc/resolv.conf exist - if not creates it=0A= [ -f /etc/resolv.conf ] || {=0A= touch /etc/resolv.conf=0A= }=0A= =0A= # check if /mnt/cdrom , /mnt/floppy and /mnt/disk are here - if not = create them=0A= [ -d /mnt/cdrom ] || {=0A= action "Creating /mnt/cdrom" mkdir -p /mnt/cdrom=0A= }=0A= =0A= [ -d /mnt/floppy ] || {=0A= action "Creating /mnt/floppy" mkdir -p /mnt/floppy=0A= }=0A= =0A= #[ -d /mnt/disk ] || {=0A= # action "Creating /mnt/disk" mkdir -p /mnt/disk=0A= #}=0A= =0A= # try to insmod vfat=0A= /sbin/modprobe vfat &> /dev/null=0A= =0A= # Only for patched shadow_utils!!!=0A= # For RE only!!!=0A= # set template for skel=0A= #=0A= NLS_SKEL_DIR=3D"/etc/skel.`expr substr $LANG 1 2`"=0A= if [ -d $NLS_SKEL_DIR ]; then=0A= useradd -D -k $NLS_SKEL_DIR &> /dev/null=0A= fi=0A= =0A= # Now that we have all of our basic modules loaded and the kernel going,=0A= # let's dump the syslog ring somewhere so we can find it later=0A= dmesg > /var/log/dmesg=0A= ------=_NextPart_000_0043_01C09422.B5D49260 Content-Type: application/octet-stream; name="rc.sysinit" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="rc.sysinit" #!/bin/sh=0A= #=0A= # /etc/rc.d/rc.sysinit - run once at boot time=0A= #=0A= # Taken in part from Miquel van Smoorenburg's bcheckrc.=0A= #=0A= =0A= # Rerun ourselves through initlog=0A= if [ -z "$IN_INITLOG" ]; then=0A= [ -f /sbin/initlog ] && exec /sbin/initlog $INITLOG_ARGS -r = /etc/rc.d/rc.sysinit=0A= fi=0A= =0A= # Set the path=0A= PATH=3D/bin:/sbin:/usr/bin:/usr/sbin=0A= export PATH=0A= =0A= # Read in config data.=0A= if [ -f /etc/sysconfig/network ]; then=0A= . /etc/sysconfig/network=0A= else=0A= NETWORKING=3Dno=0A= HOSTNAME=3Dlocalhost=0A= fi=0A= =0A= # Source functions=0A= . /etc/rc.d/init.d/functions=0A= =0A= # Print a banner. ;)=0A= echo -en "\t\t\tWelcome to Linux "=0A= [ "$BOOTUP" !=3D "serial" ] && echo -en "\\033[1;36m"=0A= echo -e "Mandrake"=0A= [ "$BOOTUP" !=3D "serial" ] && echo -en "\\033[0;39m"=0A= if [ "$PROMPT" !=3D "no" ]; then=0A= echo -en "\t\tPress 'i' to enter interactive startup."=0A= echo=0A= sleep 1=0A= fi=0A= =0A= # Fix console loglevel=0A= /bin/dmesg -n $LOGLEVEL=0A= =0A= # Mount /proc (done here so volume labels can work with fsck)=0A= =0A= action "Mounting proc filesystem" mount -n -t proc /proc /proc=0A= =0A= # Turn off sysrq=0A= if [ -f /proc/sys/kernel/sysrq -a "$MAGIC_SYSRQ" =3D "no" ]; then=0A= echo "0" > /proc/sys/kernel/sysrq=0A= action "Turning off Magic SysRq key" /bin/true=0A= fi=0A= # Turn off Stop-A=0A= if [ -f /proc/sys/kernel/stop-a -a "$STOP_A" =3D "no" ]; then=0A= echo "0" > /proc/sys/kernel/stop-a=0A= action "Turning off Stop-A/Break-A" /bin/true=0A= fi=0A= =0A= # Set the system clock.=0A= ARC=3D0=0A= SRM=3D0=0A= UTC=3D0=0A= =0A= =0A= if [ -f /etc/sysconfig/clock ]; then=0A= . /etc/sysconfig/clock=0A= =0A= # convert old style clock config to new values=0A= if [ "${CLOCKMODE}" =3D "GMT" ]; then=0A= UTC=3Dtrue=0A= elif [ "${CLOCKMODE}" =3D "ARC" ]; then=0A= ARC=3Dtrue=0A= fi=0A= fi=0A= =0A= if grep "system serial" /proc/cpuinfo | grep -q MILO ; then=0A= ARC=3Dtrue=0A= fi=0A= =0A= CLOCKDEF=3D""=0A= CLOCKFLAGS=3D"--hctosys"=0A= =0A= case "$UTC" in=0A= yes|true)=0A= CLOCKFLAGS=3D"$CLOCKFLAGS -u";=0A= CLOCKDEF=3D"$CLOCKDEF (utc)";=0A= ;;=0A= esac=0A= =0A= case "$ARC" in=0A= yes|true)=0A= CLOCKFLAGS=3D"$CLOCKFLAGS -A";=0A= CLOCKDEF=3D"$CLOCKDEF (arc)";=0A= ;;=0A= esac=0A= case "$SRM" in=0A= yes|true)=0A= CLOCKFLAGS=3D"$CLOCKFLAGS -S";=0A= CLOCKDEF=3D"$CLOCKDEF (srm)";=0A= ;;=0A= esac=0A= =0A= /sbin/hwclock $CLOCKFLAGS=0A= =0A= action "Setting clock $CLOCKDEF: `date`" date=0A= =0A= # Load keymap=0A= KEYMAP=3D=0A= if [ -f /etc/sysconfig/console/default.kmap ]; then=0A= KEYMAP=3D/etc/sysconfig/console/default.kmap=0A= # Since this takes in/output from stdin/out, we can't use initlog=0A= loadkeys $KEYMAP < /dev/tty0 > /dev/tty0 2>/dev/null && \=0A= success "Loading default keymap" || failure "Loading default keymap"=0A= echo=0A= else=0A= if [ -x etc/rc.d/init.d/keytable -a -d /usr/lib/kbd/keymaps ]; then=0A= /etc/rc.d/init.d/keytable start=0A= else=0A= DELAYED_KEYMAP=3Dy=0A= fi=0A= fi =0A= =0A= # Load system font=0A= if [ -x /sbin/setsysfont ]; then=0A= [ -f /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n=0A= if [ -f /etc/sysconfig/console/$SYSFONT.psf.gz -o -f = /usr/lib/kbd/consolefonts/$SYSFONT.psf.gz ]; then=0A= action "Setting default font" /sbin/setsysfont=0A= fi=0A= fi=0A= =0A= # Start up swapping.=0A= action "Activating swap partitions" swapon -a=0A= =0A= # Set the hostname.=0A= action "Setting hostname ${HOSTNAME}" hostname ${HOSTNAME}=0A= =0A= # Set the NIS domain name=0A= if [ -n "$NISDOMAIN" ]; then=0A= action "Setting NIS domain name $NISDOMAIN" domainname $NISDOMAIN=0A= else=0A= domainname ""=0A= fi=0A= =0A= if [ -f /fsckoptions ]; then=0A= fsckoptions=3D`cat /fsckoptions`=0A= else=0A= fsckoptions=3D=0A= fi=0A= =0A= if [ -f /forcefsck ]; then=0A= fsckoptions=3D"-f $fsckoptions"=0A= fi=0A= =0A= if [ "$BOOTUP" !=3D "serial" ]; then=0A= fsckoptions=3D"-C $fsckoptions"=0A= else=0A= fsckoptions=3D"-V $fsckoptions"=0A= fi=0A= =0A= _RUN_QUOTACHECK=3D0=0A= if [ ! -f /fastboot ]; then=0A= STRING=3D"Checking root filesystem"=0A= echo $STRING=0A= initlog -c "fsck -T -a $fsckoptions /"=0A= rc=3D$?=0A= =0A= if [ "$rc" =3D "0" ]; then=0A= success "$STRING"=0A= echo=0A= elif [ "$rc" =3D "1" ]; then=0A= passed "$STRING"=0A= echo=0A= fi=0A= =0A= # A return of 2 or higher means there were serious problems.=0A= if [ $rc -gt 1 ]; then=0A= failure "$STRING"=0A= echo=0A= echo=0A= echo "*** An error occurred during the file system check."=0A= echo "*** Dropping you to a shell; the system will reboot"=0A= echo "*** when you leave the shell."=0A= =0A= PS1=3D"(Repair filesystem) \#"; export PS1=0A= sulogin=0A= =0A= echo "Unmounting file systems"=0A= umount -a=0A= mount -n -o remount,ro /=0A= echo "Automatic reboot in progress."=0A= reboot -f=0A= elif [ "$rc" =3D "1" ]; then=0A= _RUN_QUOTACHECK=3D1=0A= fi=0A= fi=0A= =0A= # check for arguments =0A= =0A= if grep -i nopnp /proc/cmdline >/dev/null ; then=0A= PNP=3D=0A= else=0A= PNP=3Dyes=0A= fi=0A= =0A= # set up pnp =0A= if [ -x /sbin/isapnp -a -f /etc/isapnp.conf ]; then=0A= if [ -n "$PNP" ]; then=0A= action "Setting up ISA PNP devices" /sbin/isapnp /etc/isapnp.conf=0A= else=0A= action "Skipping ISA PNP configuration at users request" /bin/true=0A= fi=0A= fi=0A= =0A= # Remount the root filesystem read-write.=0A= =0A= action "Remounting root filesystem in read-write mode" mount -n -o = remount,rw /=0A= =0A= # Add /proc to /etc/mtab=0A= mount -f -t proc /proc /proc=0A= =0A= # Update quotas if fsck was run on /.=0A= if [ X"$_RUN_QUOTACHECK" =3D X1 -a -x /sbin/quotacheck ]; then=0A= action "Checking root filesystem quotas" /sbin/quotacheck -v /=0A= fi=0A= =0A= # XXX Disabled to avoid complaints on root later with quotaon -a=0A= #if [ -x /sbin/quotaon ]; then=0A= # action "Turning on user and group quotas for root filesystem" = /sbin/quotaon /=0A= #fi=0A= =0A= # The root filesystem is now read-write, so we can now log via syslog() = directly..=0A= if [ -n "$IN_INITLOG" ]; then=0A= IN_INITLOG=3D=0A= fi=0A= =0A= echo ${HOSTNAME} > /etc/HOSTNAME=0A= =0A= # Clear mtab=0A= >/etc/mtab=0A= =0A= # Enter root and /proc into mtab.=0A= mount -f /=0A= mount -f /proc=0A= =0A= # if /boot is on a partition of his own, mount it now=0A= if grep -q '/boot' /etc/fstab >& /dev/null ; then=0A= mount /boot=0A= fi=0A= =0A= if ! grep -i nomodules /proc/cmdline >/dev/null && [ -f /proc/ksyms ]; = then=0A= USEMODULES=3Dy=0A= else=0A= USEMODULES=3D=0A= fi=0A= =0A= # Our modutils don't support it anymore, so we might as well remove=0A= # the preferred link.=0A= #rm -f /lib/modules/preferred=0A= #rm -f /lib/modules/default=0A= #if [ -x /sbin/depmod -a -n "$USEMODULES" ]; then=0A= # # If they aren't using a recent sane kernel, make a link for them=0A= # if [ ! -n `uname -r | grep "-"` ]; then=0A= # ktag=3D"`cat /proc/version`"=0A= # mtag=3D`grep -l "$ktag" /lib/modules/*/.rhkmvtag 2> /dev/null`=0A= # if [ -n "$mtag" ]; then=0A= # mver=3D`echo $mtag | sed -e 's,/lib/modules/,,' -e = 's,/.rhkmvtag,,' -e 's,[ ].*$,,'`=0A= # fi=0A= # if [ -n "$mver" ]; then=0A= # ln -sf /lib/modules/$mver /lib/modules/default=0A= # [ -f "/boot/module-info-$mver" ] && \=0A= # ln -sf /boot/module-info-$mver /boot/module-info=0A= # [ -f "/boot/System.map-$mver" ] && \=0A= # ln -sf /boot/System.map-$mver /boot/System.map=0A= # fi=0A= # fi=0A= # if [ -L /lib/modules/default ]; then=0A= # INITLOG_ARGS=3D action "Finding module dependencies" depmod -a = default=0A= # else=0A= # [ -x /sbin/is_depmod_necessary ] && /sbin/is_depmod_necessary = 2>/dev/null || \=0A= # INITLOG_ARGS=3D action "Finding module dependencies" depmod -a=0A= # fi=0A= #fi=0A= =0A= # load sound modules=0A= if [ -n "$USEMODULES" ]; then=0A= if grep -s -q "^alias sound " /etc/conf.modules ; then=0A= action "Loading sound module" modprobe sound=0A= fi=0A= if grep -s -q "^alias midi " /etc/conf.modules ; then=0A= action "Loading midi module" modprobe midi=0A= fi=0A= fi=0A= =0A= # Load mixer settings=0A= if grep -q "\(sparcaudio\|sound\)" /proc/devices 2>/dev/null && [ -f = /etc/.aumixrc -a -x /bin/aumix-minimal ]; then=0A= action "Loading mixer settings" /bin/aumix-minimal -f /etc/.aumixrc -L=0A= fi=0A= =0A= if [ -f /proc/sys/kernel/modprobe ]; then=0A= if [ -n "$USEMODULES" ]; then=0A= echo "/sbin/modprobe" > /proc/sys/kernel/modprobe=0A= else=0A= echo "" > /proc/sys/kernel/modprobe=0A= fi=0A= fi=0A= =0A= # Load modules (for backward compatibility with VARs)=0A= if [ -f /etc/rc.d/rc.modules ]; then=0A= /etc/rc.d/rc.modules=0A= fi=0A= =0A= # Add raid devices=0A= if [ -f /proc/mdstat -a -f /etc/raidtab ]; then=0A= echo -n "Starting up RAID devices: " =0A= =0A= rc=3D0=0A= =0A= for i in `grep "raiddev" /etc/raidtab | awk '{print $2}'`=0A= do=0A= RAIDDEV=3D`basename $i`=0A= RAIDSTAT=3D`grep "^$RAIDDEV : active" /proc/mdstat`=0A= if [ -z "$RAIDSTAT" ]; then=0A= # Try raidstart first...if that fails then=0A= # fall back to raidadd, raidrun. If that=0A= # also fails, then we drop to a shell=0A= RESULT=3D1=0A= if [ -x /sbin/raidstart ]; then=0A= /sbin/raidstart $i=0A= RESULT=3D$?=0A= fi=0A= if [ $RESULT -gt 0 -a -x /sbin/raid0run ]; then=0A= /sbin/raid0run $i=0A= RESULT=3D$?=0A= fi=0A= if [ $RESULT -gt 0 -a -x /sbin/raidadd -a -x /sbin/raidrun ]; then=0A= /sbin/raidadd $i=0A= /sbin/raidrun $i=0A= RESULT=3D$?=0A= fi=0A= if [ $RESULT -gt 0 ]; then=0A= rc=3D1=0A= fi=0A= echo -n "$RAIDDEV "=0A= else=0A= echo -n "$RAIDDEV "=0A= fi=0A= done=0A= =0A= # A non-zero return means there were problems.=0A= if [ $rc -gt 0 ]; then=0A= echo=0A= echo=0A= echo "*** An error occurred during the RAID startup"=0A= echo "*** Dropping you to a shell; the system will reboot"=0A= echo "*** when you leave the shell."=0A= =0A= PS1=3D"(RAID Repair) \#"; export PS1=0A= sulogin=0A= =0A= echo "Unmounting file systems"=0A= umount -a=0A= mount -n -o remount,ro /=0A= echo "Automatic reboot in progress."=0A= reboot -f=0A= fi=0A= fi=0A= =0A= if grep -q '/boot' /etc/fstab >& /dev/null ; then=0A= umount /boot=0A= fi=0A= =0A= # Check filesystems=0A= if [ ! -f /fastboot ]; then=0A= STRING=3D"Checking filesystems"=0A= echo $STRING=0A= initlog -c "fsck -T -R -A -a $fsckoptions"=0A= rc=3D$?=0A= if [ "$rc" =3D "0" ]; then=0A= success "$STRING"=0A= echo=0A= elif [ "$rc" =3D "1" ]; then=0A= passed "$STRING"=0A= echo=0A= fi=0A= =0A= # A return of 2 or higher means there were serious problems.=0A= if [ $rc -gt 1 ]; then=0A= failure "$STRING"=0A= echo=0A= echo=0A= echo "*** An error occurred during the file system check."=0A= echo "*** Dropping you to a shell; the system will reboot"=0A= echo "*** when you leave the shell."=0A= =0A= PS1=3D"(Repair filesystem) \#"; export PS1=0A= sulogin=0A= =0A= echo "Unmounting file systems"=0A= umount -a=0A= mount -n -o remount,ro /=0A= echo "Automatic reboot in progress."=0A= reboot -f=0A= elif [ "$rc" =3D "1" -a -x /sbin/quotacheck ]; then=0A= action "Checking filesystem quotas" /sbin/quotacheck -v -R -a=0A= fi=0A= fi=0A= =0A= # Mount all other filesystems (except for NFS and /proc, which is already=0A= # mounted). Contrary to standard usage,=0A= # filesystems are NOT unmounted in single user mode.=0A= if grep -i linuxfix /proc/cmdline >/dev/null ; then=0A= action "Mounting local filesystems" mount -a -t = nonfs,smbfs,ncpfs,proc,devpts,supermount,vfat=0A= else =0A= action "Mounting local filesystems" mount -a -t = nonfs,smbfs,ncpfs,proc =0A= fi =0A= =0A= # Configure machine if necessary.=0A= if [ -f /.unconfigured ]; then=0A= if [ -x /usr/bin/passwd ]; then =0A= /usr/bin/passwd root=0A= fi=0A= if [ -x /usr/sbin/netconfig ]; then=0A= /usr/sbin/netconfig=0A= fi=0A= if [ -x /usr/sbin/timeconfig ]; then=0A= /usr/sbin/timeconfig=0A= fi=0A= if [ -x /usr/sbin/authconfig ]; then=0A= /usr/sbin/authconfig --nostart=0A= fi=0A= if [ -x /usr/sbin/ntsysv ]; then=0A= /usr/sbin/ntsysv --level 35=0A= fi=0A= =0A= # Reread in network configuration data.=0A= if [ -f /etc/sysconfig/network ]; then=0A= . /etc/sysconfig/network=0A= =0A= # Reset the hostname.=0A= action "Resetting hostname ${HOSTNAME}" hostname ${HOSTNAME}=0A= =0A= # Reset the NIS domain name.=0A= if [ -n "$NISDOMAIN" ]; then=0A= action "Resetting NIS domain name $NISDOMAIN" domainname $NISDOMAIN=0A= else=0A= domainname ""=0A= fi=0A= fi=0A= =0A= rm -f /.unconfigured=0A= fi=0A= =0A= if [ -x /sbin/quotaon ]; then=0A= action "Turning on user and group quotas for local filesystems" = /sbin/quotaon -a=0A= fi=0A= =0A= # Clean out /etc.=0A= rm -f /etc/mtab~ /fastboot /fsckoptions /forcefsck=0A= =0A= # Do we need (w|u)tmpx files? We don't set them up, but the sysadmin = might...=0A= _NEED_XFILES=3D=0A= [ -f /var/run/utmpx -o -f /var/log/wtmpx ] && _NEED_XFILES=3D1=0A= =0A= # Clean up /var=0A= # I'd use find, but /usr may not be mounted.=0A= for afile in /var/lock/* /var/run/*; do=0A= [ "$afile" =3D "/var/lock/TMP_1ST" ] && continue=0A= if [ -d $afile ]; then=0A= rm -f $afile/*=0A= else=0A= rm -f $afile=0A= fi=0A= done=0A= =0A= {=0A= # Clean up utmp/wtmp=0A= >/var/run/utmp=0A= touch /var/log/wtmp=0A= chgrp utmp /var/run/utmp /var/log/wtmp=0A= chmod 0664 /var/run/utmp /var/log/wtmp=0A= if [ -n "$_NEED_XFILES" ]; then=0A= >/var/run/utmpx=0A= touch /var/log/wtmpx=0A= chgrp utmp /var/run/utmpx /var/log/wtmpx=0A= chmod 0664 /var/run/utmpx /var/log/wtmpx=0A= fi=0A= =0A= # Delete X locks=0A= rm -f /tmp/.X*-lock=0A= =0A= # Delete Postgres sockets=0A= rm -f /tmp/.s.PGSQL.*=0A= =0A= # Right, now turn on swap in case we swap to files.=0A= swapon -a >/dev/null 2>&1=0A= action "Enabling swap space" /bin/true=0A= =0A= # Initialize the serial ports.=0A= if [ -f /etc/rc.d/rc.serial ]; then=0A= . /etc/rc.d/rc.serial=0A= fi=0A= =0A= if [ -r /etc/rc.d/rc.firewall ]; then=0A= . /etc/rc.d/rc.firewall=0A= fi=0A= =0A= # If a SCSI tape has been detected, load the st module unconditionally=0A= # since many SCSI tapes don't deal well with st being loaded and unloaded=0A= if [ -f /proc/scsi/scsi ] && grep -q 'Type: Sequential-Access' = /proc/scsi/scsi 2>/dev/null ; then=0A= if grep -qv ' 9 st' /proc/devices ; then=0A= if [ -n "$USEMODULES" ] ; then=0A= # Try to load the module. If it fails, ignore it...=0A= insmod -p st >/dev/null 2>&1 && modprobe st >/dev/null 2>&1=0A= fi=0A= fi=0A= fi=0A= =0A= =0A= # Generate a header that defines the boot kernel.=0A= if uname -r | grep -q smp ; then=0A= SMP=3D"1"=0A= UP=3D"0"=0A= FB=3D"0"=0A= SC=3D"0"=0A= elif uname -r | grep -q fb;then=0A= SMP=3D"0"=0A= UP=3D"0"=0A= FB=3D"1"=0A= SC=3D"0"=0A= elif uname -r | grep -q secure;then=0A= SMP=3D"0"=0A= UP=3D"0"=0A= FB=3D"0"=0A= SC=3D"1"=0A= else=0A= SMP=3D"0"=0A= UP=3D"1"=0A= FB=3D"0"=0A= SC=3D"0"=0A= fi=0A= cat > /boot/kernel.h << EOF=0A= /* This file is automatically generated at boot time. */=0A= #ifndef __BOOT_KERNEL_H_=0A= #define __BOOT_KERNEL_H_=0A= =0A= #ifndef __BOOT_KERNEL_SMP=0A= #define __BOOT_KERNEL_SMP $SMP=0A= #endif=0A= =0A= #ifndef __BOOT_KERNEL_FB=0A= #define __BOOT_KERNEL_FB $FB=0A= #endif=0A= =0A= #ifndef __BOOT_KERNEL_SECURE=0A= #define __BOOT_KERNEL_SECURE $SC=0A= #endif=0A= =0A= #ifndef __BOOT_KERNEL_UP=0A= #define __BOOT_KERNEL_UP $UP=0A= #endif=0A= =0A= #endif=0A= EOF=0A= =0A= # Now that we have all of our basic modules loaded and the kernel going,=0A= # let's dump the syslog ring somewhere so we can find it later=0A= dmesg > /var/log/dmesg=0A= kill -TERM `/sbin/pidof getkey` >/dev/null 2>&1=0A= } &=0A= if [ "$PROMPT" !=3D "no" ]; then=0A= /sbin/getkey i && touch /var/run/confirm=0A= fi=0A= wait=0A= =0A= =0A= if [ -f /var/lock/TMP_1ST ];then=0A= if [ -f /etc/rc.d/init.d/mandrake_firstime ];then=0A= /bin/sh /etc/rc.d/init.d/mandrake_firstime=0A= fi=0A= fi=0A= =0A= if [ -f /etc/rc.d/init.d/mandrake_everytime ];then =0A= /bin/sh /etc/rc.d/init.d/mandrake_everytime=0A= fi=0A= ------=_NextPart_000_0043_01C09422.B5D49260--