aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
blob: 45c2e6fe39de9703572b512196397debe026c74b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
#!/bin/bash
#
# /etc/rc.d/rc.sysinit - run once at boot time
#
# Taken in part from Miquel van Smoorenburg's bcheckrc.
#

HOSTNAME=`/bin/hostname`
HOSTTYPE=`uname -m`
unamer=`uname -r`

if [ -f /etc/sysconfig/network ]; then
    . /etc/sysconfig/network
fi
if [ -z "$HOSTNAME" -o "$HOSTNAME" = "(none)" ]; then
    HOSTNAME=localhost
fi

if [ ! -e /proc/mounts ]; then 
	mount -n -t proc /proc /proc
	mount -n -t sysfs /sys /sys >/dev/null 2>&1
fi
if [ ! -d /proc/bus/usb ]; then
	modprobe usbcore >/dev/null 2>&1 && mount -n -t usbfs /proc/bus/usb /proc/bus/usb
else
	mount -n -t usbfs /proc/bus/usb /proc/bus/usb
fi
 
. /etc/init.d/functions

# Check SELinux status
selinuxfs="$(fstab_decode_str `LC_ALL=C awk '/ selinuxfs / { print $2 }' /proc/mounts`)"
SELINUX_STATE=
if [ -n "$selinuxfs" ] && [ "`cat /proc/self/attr/current`" != "kernel" ]; then
	if [ -r "$selinuxfs/enforce" ] ; then
		SELINUX_STATE=`cat "$selinuxfs/enforce"`
	else
		# assume enforcing if you can't read it
		SELINUX_STATE=1
	fi
fi

if [ -n "$SELINUX_STATE" -a -x /sbin/restorecon ] && LC_ALL=C fgrep -q " /dev " /proc/mounts ; then
	/sbin/restorecon  -R /dev 2>/dev/null
fi

disable_selinux() {
	echo $"*** Warning -- SELinux is active"
	echo $"*** Disabling security enforcement for system recovery."
	echo $"*** Run 'setenforce 1' to reenable."
	echo "0" > "$selinuxfs/enforce"
}

relabel_selinux() {
    if [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --ping ; then
	chvt 1
    fi
    # if /sbin/init is not labeled correctly this process is running in the 
    # wrong context, so a reboot will be reuired after relabel
    REBOOTFLAG=`restorecon -v /sbin/init`
    AUTORELABEL=
    . /etc/selinux/config
    if [ "$AUTORELABEL" = "0" ]; then
 	rm -f  /.autorelabel 

 	echo
	echo $"*** Warning -- SELinux ${SELINUXTYPE} policy relabel is required. "
 	echo $"*** /etc/selinux/config indicates you want to manually fix labeling"
 	echo $"*** problems. Dropping you to a shell; the system will reboot"
 	echo $"*** when you leave the shell."
 	echo "0" > $selinuxfs/enforce
 	sulogin
 
 	echo $"Unmounting file systems"
 	umount -a
 	mount -n -o remount,ro /
 	echo $"Automatic reboot in progress."
 	reboot -f
    else
 	echo
 	echo $"*** Warning -- SELinux ${SELINUXTYPE} policy relabel is required."
 	echo $"*** Relabeling could take a very long time, depending on file"
 	echo $"*** system size and speed of hard drives."
 
 	echo "0" > $selinuxfs/enforce
 	/sbin/fixfiles restore > /dev/null 2>&1 
 	rm -f  /.autorelabel 
 	if [ ! -z "$REBOOTFLAG" ]; then 
 	    echo $"Automatic reboot in progress."
 	    reboot -f
 	fi
 	echo $SELINUX_STATE > $selinuxfs/enforce
 	if [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --ping ; then
 	    chvt 8
 	fi
    fi
}

key_is_random() {
    [ "$1" = "/dev/urandom" -o "$1" = "/dev/hw_random" \
	-o "$1" = "/dev/random" ]
}

# Because of a chicken/egg problem, init_crypto must be run twice.  /var may be
# encrypted but /var/lib/random-seed is needed to initialize swap.
init_crypto() {
    local have_random dst src key opt mode owner params makeswap skip arg opt
    local param value rc ret mke2fs mdir

    ret=0
    have_random=$1
    while read dst src key opt; do
	[ -z "$dst" -o "${dst#\#}" != "$dst" ] && continue
        [ -b "/dev/mapper/$dst" ] && continue;
	if [ "$have_random" = 0 ] && key_is_random "$key"; then
	    continue
	fi
	if [ -n "$key" -a "x$key" != "xnone" ]; then
	    if test -e "$key" ; then
		mode=$(ls -l "$key" | cut -c 5-10)
		owner=$(ls -l $key | awk '{ print $3 }')
		if [ "$mode" != "------" ] && ! key_is_random "$key"; then
		    echo $"INSECURE MODE FOR $key"
		fi
		if [ "$owner" != root ]; then
		    echo $"INSECURE OWNER FOR $key"
		fi
	    else
		echo $"Key file for $dst not found, skipping"
		ret=1
		continue
	    fi
	else
	    key=""
	fi
	params=""
	makeswap=""
	mke2fs=""
	skip=""
	# Parse the options field, convert to cryptsetup parameters
	# and contruct the command line
	while [ -n "$opt" ]; do
	    arg=${opt%%,*}
	    opt=${opt##$arg}
	    opt=${opt##,}
	    param=${arg%%=*}
	    value=${arg##$param=}

	    case "$param" in
	    cipher)
		params="$params -c $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for cipher option, skipping"
		    skip="yes"
		fi
	    ;;
	    size)
		params="$params -s $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for size option, skipping"
		    skip="yes"
		fi
	    ;;
	    hash)
		params="$params -h $value"
		if [ -z "$value" ]; then
		    echo $"$dst: no value for hash option, skipping"
		    skip="yes"
		fi
	    ;;
	    verify)
	        params="$params -y"
	    ;;
	    swap)
		makeswap=yes
		;;
	    tmp)
		mke2fs=yes
	    esac
	done
	if [ "$skip" = "yes" ]; then
	    ret=1
	    continue
	fi
	if [ -z "$key" -a -x /usr/bin/rhgb-client ] \
	    && /usr/bin/rhgb-client --ping ; then
	    chvt 1
	fi
	if cryptsetup isLuks "$src" 2>/dev/null; then
	    if key_is_random "$key"; then
		echo $"$dst: LUKS requires non-random key, skipping"
		ret=1
		continue
	    fi
	    if [ -n "$params" ]; then
		echo "$dst: options are invalid for LUKS partitions," \
		    "ignoring them"
	    fi
	    /sbin/cryptsetup ${key:+-d $key} luksOpen "$src" "$dst" <&1
	else
	    /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1
	fi
	rc=$?
	if [ -z "$key" -a -x /usr/bin/rhgb-client ] \
	    && /usr/bin/rhgb-client --ping ; then
	    chvt 8
	fi
	if [ $rc -ne 0 ]; then
	    ret=1
	    continue
	fi
	if [ -b "/dev/mapper/$dst" ]; then
	    if [ "$makeswap" = "yes" ]; then
		mkswap "/dev/mapper/$dst" 2>/dev/null >/dev/null
	    fi
	    if [ "$mke2fs" = "yes" ]; then
		if mke2fs "/dev/mapper/$dst" 2>/dev/null >/dev/null \
		    && mdir=$(mktemp -d /tmp/mountXXXXXX); then
		    mount "/dev/mapper/$dst" "$mdir" && chmod 1777 "$mdir"
		    umount "$mdir"
		    rmdir "$mdir"
		fi
	    fi
	fi
    done < /etc/crypttab
    return $ret
}

if [ -x /sbin/setsysfont -a -c /dev/tty1 ]; then
   /sbin/setsysfont < /dev/tty1 > /dev/tty1
fi

# Print a text banner.
echo -en $"\t\tWelcome to "
read -r redhat_release < /etc/redhat-release
if [[ "$redhat_release" =~ "Red Hat" ]]; then
 [ "$BOOTUP" = "color" ] && echo -en "\\033[0;31m"
 echo -en "Red Hat"
 [ "$BOOTUP" = "color" ] && echo -en "\\033[0;39m"
 PRODUCT=`sed "s/Red Hat \(.*\) release.*/\1/" /etc/redhat-release`
 echo " $PRODUCT"
elif [[ "$redhat_release" =~ "Fedora" ]]; then
 [ "$BOOTUP" = "color" ] && echo -en "\\033[0;34m"
 echo -en "Fedora"
 [ "$BOOTUP" = "color" ] && echo -en "\\033[0;39m"
 PRODUCT=`sed "s/Fedora \(.*\) release.*/\1/" /etc/redhat-release`
 echo " $PRODUCT"
else
 PRODUCT=`sed "s/ release.*//g" /etc/redhat-release`
 echo "$PRODUCT"
fi
if [ "$PROMPT" != "no" ]; then
 echo -en $"\t\tPress 'I' to enter interactive startup."
 echo
fi

# Set the system clock.
update_boot_stage RCclock
ARC=0
SRM=0
UTC=0

if [ -f /etc/sysconfig/clock ]; then
   . /etc/sysconfig/clock

   # convert old style clock config to new values
   if [ "${CLOCKMODE}" = "GMT" ]; then
      UTC=true
   elif [ "${CLOCKMODE}" = "ARC" ]; then
      ARC=true
   fi
fi

CLOCKDEF=""
CLOCKFLAGS="$CLOCKFLAGS --hctosys"

case "$UTC" in
    yes|true)	CLOCKFLAGS="$CLOCKFLAGS --utc"
		CLOCKDEF="$CLOCKDEF (utc)" ;;
    no|false)	CLOCKFLAGS="$CLOCKFLAGS --localtime"
		CLOCKDEF="$CLOCKDEF (localtime)" ;;
esac
case "$ARC" in
    yes|true)	CLOCKFLAGS="$CLOCKFLAGS --arc"
		CLOCKDEF="$CLOCKDEF (arc)" ;;
esac
case "$SRM" in
    yes|true)	CLOCKFLAGS="$CLOCKFLAGS --srm"
		CLOCKDEF="$CLOCKDEF (srm)" ;;
esac

[ -x /sbin/hwclock ] && /sbin/hwclock $CLOCKFLAGS

action $"Setting clock $CLOCKDEF: `date`" /bin/true

# Fix console loglevel
if [ -n "$LOGLEVEL" ]; then
	/bin/dmesg -n $LOGLEVEL
fi


# Only read this once.
cmdline=$(cat /proc/cmdline)

# Initialize hardware
if [ -f /proc/sys/kernel/modprobe ]; then
   if ! strstr "$cmdline" nomodules && [ -f /proc/modules ] ; then
       sysctl -w kernel.modprobe="/sbin/modprobe" >/dev/null 2>&1
   else
       # We used to set this to NULL, but that causes 'failed to exec' messages"
       sysctl -w kernel.modprobe="/bin/true" >/dev/null 2>&1
   fi
fi

touch /dev/.in_sysinit >/dev/null 2>&1

# Set default affinity
if [ -x /bin/taskset ]; then
   if strstr "$cmdline" default_affinity= ; then
     for arg in $cmdline ; do
         if [ "${arg##default_affinity=}" != "${arg}" ]; then
             /bin/taskset -p ${arg##default_affinity=} 1
         fi
     done
   fi
fi

nashpid=$(pidof nash 2>/dev/null)
[ -n "$nashpid" ] && kill $nashpid >/dev/null 2>&1
unset nashpid
/sbin/start_udev

# Load other user-defined modules
for file in /etc/sysconfig/modules/*.modules ; do
  [ -x $file ] && $file
done

# Load modules (for backward compatibility with VARs)
if [ -f /etc/rc.modules ]; then
	/etc/rc.modules
fi

# Start the graphical boot, if necessary; /usr may not be mounted yet, so we
# may have to do this again after mounting
RHGB_STARTED=0
mount -n /dev/pts >/dev/null 2>&1
[ -n "$SELINUX_STATE" ] && restorecon /dev/pts >/dev/null 2>&1

if strstr "$cmdline" rhgb && ! strstr "$cmdline" early-login && [ "$BOOTUP" = "color" -a "$GRAPHICAL" = "yes" -a -x /usr/bin/rhgb ]; then
   LC_MESSAGES= /usr/bin/rhgb
   RHGB_STARTED=1
fi

# Configure kernel parameters
update_boot_stage RCkernelparam
sysctl -e -p /etc/sysctl.conf >/dev/null 2>&1

if [ -x /bin/loadkeys ]; then
 KEYTABLE=
 KEYMAP=
 if [ -f /etc/sysconfig/console/default.kmap ]; then
  KEYMAP=/etc/sysconfig/console/default.kmap
 else
  if [ -f /etc/sysconfig/keyboard ]; then
    . /etc/sysconfig/keyboard
  fi
  if [ -n "$KEYTABLE" -a -d "/lib/kbd/keymaps" ]; then
     KEYMAP="$KEYTABLE.map"
  fi
 fi
 if [ -n "$KEYMAP" ]; then 
  if [ -n "$KEYTABLE" ]; then
    echo -n $"Loading default keymap ($KEYTABLE): "
  else
    echo -n $"Loading default keymap: "
  fi
  loadkeys -u $KEYMAP < /dev/tty0 > /dev/tty0 2>/dev/null && \
     success $"Loading default keymap" || failure $"Loading default keymap"
  echo
 fi
fi

# Set the hostname.
update_boot_stage RChostname
action $"Setting hostname ${HOSTNAME}: " hostname ${HOSTNAME}

# Initialize ACPI bits
if [ -d /proc/acpi ]; then
    for module in /lib/modules/$unamer/kernel/drivers/acpi/* ; do
        module=${module##*/}
        module=${module%.ko}
        modprobe $module >/dev/null 2>&1
    done
fi

# RAID setup
update_boot_stage RCraid
[ -x /sbin/nash ] && echo "raidautorun /dev/md0" | nash --quiet
if [ -f /etc/mdadm.conf ]; then
    /sbin/mdadm -A -s
fi

# Device mapper & related initialization
if ! LC_ALL=C fgrep -q "device-mapper" /proc/devices 2>/dev/null ; then
	modprobe dm-mod >/dev/null 2>&1
fi
mkdir -p /dev/mapper >/dev/null 2>&1
mknod /dev/mapper/control c \
	$(awk '/ misc$/ { print $1 }' /proc/devices) \
	$(awk '/ device-mapper$/ { print $1 }' /proc/misc) >/dev/null 2>&1
[ -n "$SELINUX_STATE" ] && restorecon /dev/mapper /dev/mapper/control >/dev/null 2>&1

if [ -f /etc/crypttab ]; then
    s=$"Starting disk encryption:"
    echo "$s"
    init_crypto 0 && success "$s" || failure "$s"
    echo
fi

if [ -c /dev/mapper/control ]; then
        if [ -f /etc/multipath.conf -a -x /sbin/multipath.static ] ; then
		modprobe dm-multipath > /dev/null 2>&1
		/sbin/multipath.static -v 0
		if [ -x /sbin/kpartx ]; then
			/sbin/dmsetup ls --target multipath --exec "/sbin/kpartx -a -p p"
		fi
	fi
	
	if [ -x /sbin/dmraid ]; then
		modprobe dm-mirror >/dev/null 2>&1
		for x in $(/sbin/dmraid -ay -i -p -t 2>/dev/null | \
				egrep -iv "^no " | \
				awk -F ':' '{ print $1 }') ; do
			dmname=$(resolve_dm_name $x)
			[ -n "$dmname" ] && continue
			/sbin/dmraid -ay -i -p "$dmname" >/dev/null 2>&1
			/sbin/kpartx -a -p p "/dev/mapper/$dmname"
		done
	fi
	
	if [ -x /sbin/lvm.static ]; then
		action $"Setting up Logical Volume Management:" /sbin/lvm.static vgchange -a y --ignorelockingfailure
	fi
fi

if [ -f /fastboot ] || strstr "$cmdline" fastboot ; then
	fastboot=yes
fi

if [ -f /fsckoptions ]; then
	fsckoptions=`cat /fsckoptions`
fi

if [ -f /forcefsck ] || strstr "$cmdline" forcefsck ; then
	fsckoptions="-f $fsckoptions"
elif [ -f /.autofsck ]; then
	[ -f /etc/sysconfig/autofsck ] && . /etc/sysconfig/autofsck
	if [ "$AUTOFSCK_DEF_CHECK" = "yes" ]; then
		AUTOFSCK_OPT="$AUTOFSCK_OPT -f"
	fi
	if [ -n "$AUTOFSCK_SINGLEUSER" ]; then
		echo
		echo $"*** Warning -- the system did not shut down cleanly. "
		echo $"*** Dropping you to a shell; the system will continue"
		echo $"*** when you leave the shell."
		[ -n "$SELINUX_STATE" ] && echo "0" > $selinuxfs/enforce
		sulogin
		[ -n "$SELINUX_STATE" ] && echo "1" > $selinuxfs/enforce
	fi
	fsckoptions="$AUTOFSCK_OPT $fsckoptions"
fi

if [ "$BOOTUP" = "color" ]; then
	fsckoptions="-C $fsckoptions"
else
	fsckoptions="-V $fsckoptions"
fi

READONLY=
if [ -f /etc/sysconfig/readonly-root ]; then
	. /etc/sysconfig/readonly-root
fi
if strstr "$cmdline" readonlyroot ; then
	READONLY=yes
	[ -z "$RW_MOUNT" ] && RW_MOUNT=/var/lib/stateless/writable
fi
if strstr "$cmdline" noreadonlyroot ; then
	READONLY=no
fi

if [ "$READONLY" = "yes" ]; then

	mount_empty() {
		if [ -e "$1" ]; then
			echo "$1" | cpio -p -vd "$RW_MOUNT" &>/dev/null
			mount -n --bind "$RW_MOUNT$1" "$1"
		fi
	}

	mount_dirs() {
		if [ -e "$1" ]; then
			mkdir -p "$RW_MOUNT$1"
			# fixme: find is bad
			find "$1" -type d -print0 | cpio -p -0vd "$RW_MOUNT" &>/dev/null
			mount -n --bind "$RW_MOUNT$1" "$1"
		fi
	}

	mount_files() {
		if [ -e "$1" ]; then
			cp -a --parents "$1" "$RW_MOUNT"
			mount -n --bind "$RW_MOUNT$1" "$1"
		fi
	}

	# Common mount options for scratch space regardless of 
	# type of backing store
	mountopts=

	# Scan partitions for local scratch storage
	rw_mount_dev=$(blkid -t LABEL="$RW_LABEL" -o device | awk '{ print ; exit }')

	# First try to mount scratch storage from /etc/fstab, then any
	# partition with the proper label.  If either succeeds, be sure
	# to wipe the scratch storage clean.  If both fail, then mount
	# scratch storage via tmpfs.
	if mount $mountopts "$RW_MOUNT" > /dev/null 2>&1 ; then
		rm -rf "$RW_MOUNT" > /dev/null 2>&1
	elif [ x$rw_mount_dev != x ] && mount $rw_mount_dev $mountopts "$RW_MOUNT" > /dev/null 2>&1; then
		rm -rf "$RW_MOUNT"  > /dev/null 2>&1
	else
		mount -t tmpfs $mountopts none "$RW_MOUNT"
	fi

	for file in /etc/rwtab /etc/rwtab.d/* ; do
		is_ignored_file "$file" && continue
        	[ -f $file ] && cat $file | while read type path ; do
			case "$type" in
				empty)
					mount_empty $path
					;;
				files)
					mount_files $path
					;;
				dirs)
					mount_dirs $path
					;;
				*)
					;;
			esac
			[ -n "$SELINUX_STATE" -a -e "$path" ] && restorecon -R "$path"
		done
	done

	# In theory there should be no more than one network interface active
	# this early in the boot process -- the one we're booting from.
	# Use the network address to set the hostname of the client.  This
	# must be done even if we have local storage.
	ipaddr=
	if [ "$HOSTNAME" = "localhost" ]; then
		ipaddr=$(ip addr show to 0/0 scope global | awk '/[[:space:]]inet / { print gensub("/.*","","g",$2) }')
		if [ -n "$ipaddr" ]; then
			eval $(ipcalc -h $ipaddr 2>/dev/null)
			hostname ${HOSTNAME}
		fi
	fi
	
	# Clients with read-only root filesystems may be provided with a
	# place where they can place minimal amounts of persistent
	# state.  SSH keys or puppet certificates for example.
	#
	# Ideally we'll use puppet to manage the state directory and to
	# create the bind mounts.  However, until that's all ready this
	# is sufficient to build a working system.

	# First try to mount persistent data from /etc/fstab, then any
	# partition with the proper label, then fallback to NFS
	state_mount_dev=$(blkid -t LABEL="$STATE_LABEL" -o device | awk '{ print ; exit }')
	if mount $mountopts "$STATE_MOUNT" > /dev/null 2>&1 ; then
		/bin/true
	elif [ x$state_mount_dev != x ] && mount $state_mount_dev $mountopts "$STATE_MOUNT" > /dev/null 2>&1;  then
		/bin/true
	else
		# No local storage was found.  Make a final attempt to find 
		# state on an NFS server.

		mount -t nfs $CLIENTSTATE/$HOSTNAME $STATE_MOUNT -o rw,nolock
		if [ -d $STATE_MOUNT/etc ]; then
			touch $STATE_MOUNT/files
			mount -t nfs $CLIENTSTATE/files $STATE_MOUNT/files -o rw,nolock
		fi

	fi

	if [ -d $STATE_MOUNT/etc ]; then
		# In the future this will be handled by puppet
		for i in $(grep -v "^#" $STATE_MOUNT/files); do
			if [ -e $i ]; then
			 	mount -n -o bind $STATE_MOUNT/${i} ${i}
			fi
 		done
	fi
fi
 
if ! [[ " $fsckoptions" =~ " -y" ]]; then
    	fsckoptions="-a $fsckoptions"
fi

_RUN_QUOTACHECK=0
if [ -f /forcequotacheck ] || strstr "$cmdline" forcequotacheck ; then
	_RUN_QUOTACHECK=1
fi
if [ -z "$fastboot" -a "$READONLY" != "yes" ]; then

        STRING=$"Checking filesystems"
	echo $STRING
	if [ "${RHGB_STARTED}" != "0" -a -w /etc/rhgb/temp/rhgb-console ]; then
		fsck -T -t noopts=_netdev -A $fsckoptions > /etc/rhgb/temp/rhgb-console
	else
		fsck -T -t noopts=_netdev -A $fsckoptions
	fi
	rc=$?
	
	if [ "$rc" -eq "0" ]; then
		success "$STRING"
		echo
	elif [ "$rc" -eq "1" ]; then
	        passed "$STRING"
		echo
	elif [ "$rc" -eq "2" -o "$rc" -eq "3" ]; then 
		echo $"Unmounting file systems"
		umount -a
		mount -n -o remount,ro /
		echo $"Automatic reboot in progress."
		reboot -f
        fi
	
        # A return of 4 or higher means there were serious problems.
	if [ $rc -gt 1 ]; then
	        if [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --ping ; then
		    chvt 1
		fi

		failure "$STRING"
		echo
		echo
		echo $"*** An error occurred during the file system check."
		echo $"*** Dropping you to a shell; the system will reboot"
		echo $"*** when you leave the shell."

                str=$"(Repair filesystem)"
		PS1="$str \# # "; export PS1
		[ "$SELINUX_STATE" = "1" ] && disable_selinux
		sulogin

		echo $"Unmounting file systems"
		umount -a
		mount -n -o remount,ro /
		echo $"Automatic reboot in progress."
		reboot -f
	elif [ "$rc" -eq "1" ]; then
		_RUN_QUOTACHECK=1
	fi
	if [ -f /.autofsck -a -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --ping ; then
		chvt 8
    	fi
fi

# Update quotas if necessary
if [ X"$_RUN_QUOTACHECK" = X1 -a -x /sbin/quotacheck ]; then
	if [ -x /sbin/convertquota ]; then
	    # try to convert old quotas
	    for mountpt in `LC_ALL=C awk '$4 ~ /quota/{print $2}' /etc/mtab` ; do
	        mountpt="$(fstab_decode_str "$mountpt")"
		if [ -f "$mountpt/quota.user" ]; then
		    action $"Converting old user quota files: " \
		    /sbin/convertquota -u "$mountpt" && \
			rm -f "$mountpt/quota.user"
		fi
		if [ -f "$mountpt/quota.group" ]; then
		    action $"Converting old group quota files: " \
		    /sbin/convertquota -g "$mountpt" && \
			rm -f "$mountpt/quota.group"
		fi
	    done
	fi
	action $"Checking local filesystem quotas: " /sbin/quotacheck -aRnug
fi

# Remount the root filesystem read-write.
update_boot_stage RCmountfs
state=`LC_ALL=C awk '/ \/ / && ($3 !~ /rootfs/) { print $4 }' /proc/mounts`
[ "$state" != "rw" -a "$READONLY" != "yes" ] && \
  action $"Remounting root filesystem in read-write mode: " mount -n -o remount,rw /

# Clean up SELinux labels
if [ -n "$SELINUX_STATE" ]; then
   restorecon /etc/mtab /etc/ld.so.cache /etc/blkid/blkid.tab /etc/resolv.conf >/dev/null 2>&1
fi

# Clear mtab
(> /etc/mtab) &> /dev/null

# Remove stale backups
rm -f /etc/mtab~ /etc/mtab~~

# Enter mounted filesystems into /etc/mtab
mount -f /
mount -f /proc >/dev/null 2>&1
mount -f /sys >/dev/null 2>&1
mount -f /dev/pts >/dev/null 2>&1
mount -f /proc/bus/usb >/dev/null 2>&1

# Mount all other filesystems (except for NFS and /proc, which is already
# mounted). Contrary to standard usage,
# filesystems are NOT unmounted in single user mode.
action $"Mounting local filesystems: " mount -a -t nonfs,nfs4,smbfs,ncpfs,cifs,gfs -O no_netdev

if [ -x /sbin/quotaon ]; then
    action $"Enabling local filesystem quotas: " /sbin/quotaon -aug
fi

# Check to see if a full relabel is needed
if [ -n "$SELINUX_STATE" -a "$READONLY" != "yes" ]; then 
    if [ -f /.autorelabel ] || strstr "$cmdline" autorelabel ; then
	relabel_selinux
    fi
else
    if [ -d /etc/selinux -a "$READONLY" != "yes" ]; then
        [ -f /.autorelabel ] || touch /.autorelabel
    fi
fi


# Start the graphical boot, if necessary and not done yet.
if strstr "$cmdline" rhgb && ! strstr "$cmdline" early-login && [ "$RHGB_STARTED" -eq 0 -a "$BOOTUP" = "color" -a "$GRAPHICAL" = "yes" -a -x /usr/bin/rhgb ]; then
   LC_MESSAGES= /usr/bin/rhgb
   RHGB_STARTED=1
fi

# Initialize pseudo-random number generator
if [ -f "/var/lib/random-seed" ]; then
	cat /var/lib/random-seed > /dev/urandom
else
	[ "$READONLY" != "yes" ] && touch /var/lib/random-seed
fi
if [ "$READONLY" != "yes" ]; then
	chmod 600 /var/lib/random-seed
	dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=512 2>/dev/null
fi

# Use the hardware RNG to seed the entropy pool, if available
#[ -x /sbin/rngd -a -c /dev/hw_random ] && rngd

if [ -f /etc/crypttab ]; then
    s=$"Starting disk encryption using the RNG:"
    echo "$s"
    init_crypto 1 && success "$s" || failure "$s"
    echo
fi

# Configure machine if necessary.
if [ -f /.unconfigured ]; then
    if [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --ping ; then
	chvt 1
    fi

    if [ -x /usr/bin/system-config-keyboard ]; then
	/usr/bin/system-config-keyboard
    fi
    if [ -x /usr/bin/passwd ]; then 
        /usr/bin/passwd root
    fi
    if [ -x /usr/sbin/netconfig ]; then
	/usr/sbin/netconfig
    fi
    if [ -x /usr/sbin/timeconfig ]; then
	/usr/sbin/timeconfig
    fi
    if [ -x /usr/sbin/authconfig ]; then
	/usr/sbin/authconfig --nostart
    fi
    if [ -x /usr/sbin/ntsysv ]; then
	/usr/sbin/ntsysv --level 35
    fi

    # Reread in network configuration data.
    if [ -f /etc/sysconfig/network ]; then
	. /etc/sysconfig/network

	# Reset the hostname.
	action $"Resetting hostname ${HOSTNAME}: " hostname ${HOSTNAME}
    fi

    rm -f /.unconfigured

    if [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --ping ; then
	chvt 8
    fi
fi

# Clean out /.
rm -f /fastboot /fsckoptions /forcefsck /.autofsck /forcequotacheck /halt \
	/poweroff &> /dev/null

# Do we need (w|u)tmpx files? We don't set them up, but the sysadmin might...
_NEED_XFILES=
[ -f /var/run/utmpx -o -f /var/log/wtmpx ] && _NEED_XFILES=1

# Clean up /var.  I'd use find, but /usr may not be mounted.
for afile in /var/lock/* /var/run/* ; do
	if [ -d "$afile" ]; then
	   case "$afile" in
		*/news|*/mon)	;;
		*/sudo)		rm -f $afile/*/* ;;
		*/vmware)	rm -rf $afile/*/* ;;
		*/samba)	rm -rf $afile/*/* ;;
		*/screen)	rm -rf $afile/* ;;
		*/cvs)		rm -rf $afile/* ;;
		*/dovecot)	rm -f $afile/*/* ;;
		*/cups)		rm -f $afile/*/* ;;
		*)		rm -f $afile/* ;;
	   esac
	else
	   rm -f $afile
	fi
done
rm -f /var/lib/rpm/__db* &> /dev/null
rm -f /var/gdm/.gdmfifo &> /dev/null

# Reset pam_console permissions
[ -x /sbin/pam_console_apply ] && /sbin/pam_console_apply -r

{
# Clean up utmp/wtmp
> /var/run/utmp
touch /var/log/wtmp
chgrp utmp /var/run/utmp /var/log/wtmp
chmod 0664 /var/run/utmp /var/log/wtmp
if [ -n "$_NEED_XFILES" ]; then
  > /var/run/utmpx
  touch /var/log/wtmpx
  chgrp utmp /var/run/utmpx /var/log/wtmpx
  chmod 0664 /var/run/utmpx /var/log/wtmpx
fi

# Clean up various /tmp bits
[ -n "$SELINUX_STATE" ] && restorecon /tmp
rm -f /tmp/.X*-lock /tmp/.lock.* /tmp/.gdm_socket /tmp/.s.PGSQL.*
rm -rf /tmp/.X*-unix /tmp/.ICE-unix /tmp/.font-unix /tmp/hsperfdata_* \
       /tmp/kde-* /tmp/ksocket-* /tmp/mc-* /tmp/mcop-* /tmp/orbit-*  \
       /tmp/scrollkeeper-*  /tmp/ssh-* \
       /dev/.in_sysinit

# Make ICE directory
mkdir -m 1777 -p /tmp/.ICE-unix >/dev/null 2>&1
chown root:root /tmp/.ICE-unix
[ -n "$SELINUX_STATE" ] && restorecon /tmp/.ICE-unix >/dev/null 2>&1

#if [ -x /etc/init.d/diskdump ]; then
#	/etc/init.d/diskdump swapsavecore
#fi

# Start up swapping.
update_boot_stage RCswap
action $"Enabling /etc/fstab swaps: " swapon -a -e
if [ "$AUTOSWAP" = "yes" ]; then
	curswap=$(awk '/^\/dev/ { print $1 }' /proc/swaps | while read x; do get_numeric_dev dec $x ; echo -n " "; done)
	swappartitions=`blkid -t TYPE=swap -o device`
	if [ x"$swappartitions" != x ]; then
		for partition in $swappartitions ; do
			[ ! -e $partition ] && continue
			majmin=$(get_numeric_dev dec $partition)
			echo $curswap | grep -qw "$majmin" || action $"Enabling local swap partitions: " swapon $partition
		done
	fi
fi

# Set up binfmt_misc
/bin/mount -t binfmt_misc none /proc/sys/fs/binfmt_misc > /dev/null 2>&1

# Initialize the serial ports.
if [ -f /etc/rc.serial ]; then
	. /etc/rc.serial
fi

# If they asked for ide-scsi, load it
if strstr "$cmdline" ide-scsi ; then
	modprobe ide-cd >/dev/null 2>&1
	modprobe ide-scsi >/dev/null 2>&1
fi

# Boot time profiles. Yes, this should be somewhere else.
if [ -x /usr/sbin/system-config-network-cmd ]; then
  if strstr "$cmdline" netprofile= ; then
    for arg in $cmdline ; do
        if [ "${arg##netprofile=}" != "${arg}" ]; then
	    /usr/sbin/system-config-network-cmd --profile ${arg##netprofile=}
        fi
    done
  fi
fi

# Now that we have all of our basic modules loaded and the kernel going,
# let's dump the syslog ring somewhere so we can find it later
dmesg -s 131072 > /var/log/dmesg

# create the crash indicator flag to warn on crashes, offer fsck with timeout
touch /.autofsck &> /dev/null

if [ "$PROMPT" != no ]; then
    while :; do
	pid=$(/sbin/pidof getkey)
	[ -n "$pid" -o -e /var/run/getkey_done ] && break
	usleep 100000
    done
    [ -n "$pid" ] && kill -TERM "$pid" >/dev/null 2>&1
fi
} &
if strstr "$cmdline" confirm ; then
	touch /var/run/confirm
fi
if [ "$PROMPT" != "no" ]; then
	/sbin/getkey i && touch /var/run/confirm
	touch /var/run/getkey_done
fi
wait
[ "$PROMPT" != no ] && rm -f /var/run/getkey_done

# Let rhgb know that we're leaving rc.sysinit
if [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --ping ; then
    /usr/bin/rhgb-client --sysinit
fi

ef='#n1685'>1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726
# translation of libDrakX-standalone-sv.po to Swedish
#
# Copyright (C) 2000,2002,2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
# Copyright (c) 2000 Mandriva
#
# Kenneth Krekula, 2005.
# Fuad Sabanovic <manijak@telia.com>, 2000.
# Mattias Dahlberg <voz@home.se>, 2001, 2002.
# Mattias Newzella <newzella@linux.nu>, 2001, 2002,2003.
# Magnus Björklöf <bjorklof@nic.fi>, 2003.
# Lars Westergren <lars.westergren@home.se>, 2003, 2004, 2005.
# Thomas Backlund <tmb@mandriva.org>, 2004, 2005, 2006, 2008.
# Kenneth Krekula <kenneth.krekula@kiruna.se>, 2007.
msgid ""
msgstr ""
"Project-Id-Version: libDrakX-standalone-sv\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2008-08-29 18:53+0200\n"
"PO-Revision-Date: 2008-02-27 21:30+0200\n"
"Last-Translator: Thomas Backlund <tmb@mandriva.org>\n"
"Language-Team: Swedish <sv@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 1.11.4\n"
"Plural-Forms:  nplurals=2; plural=(n != 1);\n"

#: drakauth:27 drakauth:29 draksec:279 draksec:328
#, c-format
msgid "Authentication"
msgstr "Autentisering"

#: drakauth:39 drakclock:111 drakclock:125 drakfont:213 drakfont:226
#: drakfont:264 draksplash:169 finish-install:104 logdrake:170 logdrake:445
#: logdrake:450 scannerdrake:59 scannerdrake:101 scannerdrake:142
#: scannerdrake:200 scannerdrake:259 scannerdrake:730 scannerdrake:741
#: scannerdrake:880 scannerdrake:891 scannerdrake:961
#, c-format
msgid "Error"
msgstr "Fel"

#: drakboot:53
#, c-format
msgid "No bootloader found, creating a new configuration"
msgstr "Ingen starthanterare funnen, skapar en ny konfiguration"

#: drakboot:88 harddrake2:197 harddrake2:198 logdrake:71
#, c-format
msgid "/_File"
msgstr "/_Arkiv"

#: drakboot:89 logdrake:77
#, c-format
msgid "/File/_Quit"
msgstr "/Arkiv/A_vsluta"

#: drakboot:89 harddrake2:198 logdrake:77
#, c-format
msgid "<control>Q"
msgstr "<control>Q"

#: drakboot:129
#, c-format
msgid "Text only"
msgstr "Endast text"

#: drakboot:130
#, c-format
msgid "Verbose"
msgstr "Pratig"

#: drakboot:131
#, c-format
msgid "Silent"
msgstr "Tyst"

#: drakboot:137 drakbug:233 drakfont:682 drakperm:375 drakperm:385 drakups:27
#: harddrake2:516 localedrake:43 notify-x11-free-driver-switch:15
#: scannerdrake:51 scannerdrake:54 scannerdrake:297 scannerdrake:302
#: scannerdrake:955
#, c-format
msgid "Warning"
msgstr "Varning"

#: drakboot:138
#, c-format
msgid ""
"Your system bootloader is not in framebuffer mode. To activate graphical "
"boot, select a graphic video mode from the bootloader configuration tool."
msgstr ""
"Ditt systems starthanterare är inte i skärmbuffringsläge. För att aktivera "
"grafisk uppstart, välj ett grafiskt skärmläge i starthnterarens "
"konfigurationsverktyg."

#: drakboot:139
#, c-format
msgid "Do you want to configure it now?"
msgstr "Vill du konfigurera den nu?"

#: drakboot:148
#, c-format
msgid "Install themes"
msgstr "Installera teman"

#: drakboot:150
#, c-format
msgid "Graphical boot theme selection"
msgstr "Val av grafiskt starttema"

#: drakboot:153
#, c-format
msgid "Graphical boot mode:"
msgstr "Grafisk uppstart läge:"

#: drakboot:155
#, c-format
msgid "Theme"
msgstr "Tema"

#: drakboot:158
#, c-format
msgid ""
"Display theme\n"
"under console"
msgstr ""
"Visa tema\n"
"under konsoll"

#: drakboot:163 draksplash:25
#, c-format
msgid "Create new theme"
msgstr "Skapa nytt tema"

#: drakboot:195
#, c-format
msgid "Default user"
msgstr "Standardanvändare"

#: drakboot:196
#, c-format
msgid "Default desktop"
msgstr "Standardskrivbord"

#: drakboot:199
#, c-format
msgid "No, I do not want autologin"
msgstr "Nej, jag vill inte ha automatisk inloggning"

#: drakboot:200
#, c-format
msgid "Yes, I want autologin with this (user, desktop)"
msgstr ""
"Ja, jag vill ha automatisk inloggning med denna (användare, skrivbordsmiljö)"

#: drakboot:207
#, c-format
msgid "System mode"
msgstr "Systemläge"

#: drakboot:210
#, c-format
msgid "Launch the graphical environment when your system starts"
msgstr "Kör X-Window-systemet vid start"

#: drakboot:262
#, c-format
msgid "Boot Style Configuration"
msgstr "Anpassning av startutförande"

#: drakboot:264 drakboot:268
#, c-format
msgid "Video mode"
msgstr "Videoläge"

#: drakboot:265
#, c-format
msgid ""
"Please choose a video mode, it will be applied to each of the boot entries "
"selected below.\n"
"Be sure your video card supports the mode you choose."
msgstr ""
"Vänligen välj skärminställning. det kommer att konfigureras på alla nedan "
"valda poster.\n"
"Försäkra dig om att ditt grafikkort och skärm stöder ditt val."

#: drakbug:65 drakbug:143
#, c-format
msgid "The \"%s\" program has crashed with the following error:"
msgstr "Programmet \"%s\" har krashat med följande fel:"

#: drakbug:76
#, c-format
msgid "Mandriva Linux Bug Report Tool"
msgstr "Felrapporteringsverkyg för Mandriva Linux"

#: drakbug:81
#, c-format
msgid "Mandriva Linux Control Center"
msgstr "Mandriva Linux kontrollcentral"

#: drakbug:82
#, c-format
msgid "First Time Wizard"
msgstr "Första gången-guiden"

#: drakbug:83
#, c-format
msgid "Synchronization tool"
msgstr "Synkroniseringsverktyg"

#: drakbug:84 drakbug:195
#, c-format
msgid "Standalone Tools"
msgstr "Fristående verktyg"

#: drakbug:86 drakbug:87
#, c-format
msgid "Mandriva Online"
msgstr "Mandriva Online"

#: drakbug:88
#, c-format
msgid "Remote Control"
msgstr "Fjärrkontroll"

#: drakbug:89
#, c-format
msgid "Software Manager"
msgstr "Programhanterare"

#: drakbug:90
#, c-format
msgid "Windows Migration tool"
msgstr "Windows-migreringsverktyg"

#: drakbug:91
#, c-format
msgid "Configuration Wizards"
msgstr "Konfigurationsguider"

#: drakbug:113
#, c-format
msgid "Select Mandriva Tool:"
msgstr "Välj Mandriva verktyg:"

#: drakbug:114
#, c-format
msgid ""
"or Application Name\n"
"(or Full Path):"
msgstr ""
"eller Programnamn\n"
"eller fullständig sökväg:"

#: drakbug:117
#, c-format
msgid "Find Package"
msgstr "Hitta paket"

#: drakbug:119
#, c-format
msgid "Package: "
msgstr "Paket: "

#: drakbug:120
#, c-format
msgid "Kernel:"
msgstr "Kärna:"

#: drakbug:142
#, c-format
msgid "The \"%s\" program has segfaulted with the following error:"
msgstr "Programmet \"%s\" fick segfault med följande fel:"

#: drakbug:146
#, c-format
msgid "Its gdb trace is:"
msgstr "gdb-trace är:"

#: drakbug:149
#, c-format
msgid ""
"To submit a bug report, click on the report button.  \n"
"This will open a web browser window on %s where you'll find a form to fill "
"in.  The information displayed above will be transferred to that server.  \n"
"Things useful to include in your report are the output of lspcidrake -v, "
"kernel version, and /proc/cpuinfo."
msgstr ""
"Klicka på knappen Rapport för att skicka in en felrapport.\n"
"Det öppnar ett webbläsningsfönster på %s\n"
" där du hittar ett formulär att fylla i. Informationen som visas ovan  "
"kommer att överföras till den servern.\n"
"Värdeful information att inkludera i rapporten är kernelversion, resultat av "
"lspcidrake -v, och /proc/cpuinfo."

#: drakbug:152
#, c-format
msgid "Please describe what you were doing when it crashed:"
msgstr "Vänligen beskriv vad du gjorde när det krashade:"

#: drakbug:164 drakperm:135 draksec:438 draksec:440 draksec:459 draksec:461
#, c-format
msgid "Help"
msgstr "Hjälp"

#: drakbug:168
#, c-format
msgid "Report"
msgstr "Rapport"

#: drakbug:169 drakfont:506
#, c-format
msgid "Close"
msgstr "Stäng"

#: drakbug:202
#, c-format
msgid "Not installed"
msgstr "Inte installerad"

#: drakbug:215
#, c-format
msgid "Package not installed"
msgstr "Paketet är inte installerat"

#: drakbug:234
#, c-format
msgid ""
"You must type in what you were doing when this bug happened in order to "
"enable us to reproduce this bug and to increase the odds of fixing it"
msgstr ""
"Du måste skriva vad du gjorde när denna bugg inträffade för att vi skall "
"kunna reproducera den och öka oddsen för att fixa den"

#: drakbug:235
#, c-format
msgid "Thanks."
msgstr "Tack."

#: drakclock:30 draksec:334
#, c-format
msgid "Date, Clock & Time Zone Settings"
msgstr "Datum, Tid & Tidszon inställningar"

#: drakclock:39
#, c-format
msgid "not defined"
msgstr "Inte definierat"

#: drakclock:41
#, c-format
msgid "Change Time Zone"
msgstr "Ändra tidszon"

#: drakclock:44
#, c-format
msgid "Timezone - DrakClock"
msgstr "Tidszon - DrakClock"

#: drakclock:44
#, c-format
msgid "Which is your timezone?"
msgstr "Vilken är din tidszon?"

#: drakclock:45
#, c-format
msgid "GMT - DrakClock"
msgstr "GMT - DrakClock"

#: drakclock:45
#, c-format
msgid "Is your hardware clock set to GMT?"
msgstr "Är din hårdvaruklocka ställd till GMT?"

#: drakclock:70
#, c-format
msgid "Network Time Protocol"
msgstr "Nätverk tidsprotokoll"

#: drakclock:72
#, c-format
msgid ""
"Your computer can synchronize its clock\n"
" with a remote time server using NTP"
msgstr ""
"Din dator kan synkronisera klockan\n"
"mot en fjärrserver via NTP"

#: drakclock:73
#, c-format
msgid "Enable Network Time Protocol"
msgstr "Aktivera Nätverks-tidsprotokoll"

#: drakclock:81
#, c-format
msgid "Server:"
msgstr "Server:"

#: drakclock:95
#, c-format
msgid "Timezone"
msgstr "Tidszon"

#: drakclock:111
#, c-format
msgid "Please enter a valid NTP server address."
msgstr "Var vänlig skriv in en giltig NTP address"

#: drakclock:126
#, c-format
msgid "Could not synchronize with %s."
msgstr "Kunde inte synkronisera med: %s."

#: drakclock:127 draksplash:93 logdrake:175 scannerdrake:492
#, c-format
msgid "Quit"
msgstr "Avsluta"

#: drakclock:128
#, c-format
msgid "Retry"
msgstr "Försök igen"

#: drakclock:151 drakclock:161
#, c-format
msgid "Reset"
msgstr "Återställ"

#: drakedm:41
#, c-format
msgid "GDM (GNOME Display Manager)"
msgstr "GDM (GNOME inloggningshanterare)"

#: drakedm:42
#, c-format
msgid "KDM (KDE Display Manager)"
msgstr "KDM (KDE inloggningshanterare)"

#: drakedm:43
#, c-format
msgid "XDM (X Display Manager)"
msgstr "XDM (X inloggningshanterare)"

#: drakedm:54
#, c-format
msgid "Choosing a display manager"
msgstr "Välja en inloggningshanterare"

#: drakedm:55
#, c-format
msgid ""
"X11 Display Manager allows you to graphically log\n"
"into your system with the X Window System running and supports running\n"
"several different X sessions on your local machine at the same time."
msgstr ""
"X11 Display Manager låter dig grafiskt logga in på systemet\n"
"då du kör fönstersystemet X och stöder körandet av flera X-sessioner\n"
"samtidigt på din lokala dator."

#: drakedm:74
#, c-format
msgid "The change is done, do you want to restart the dm service?"
msgstr "Ändringen är genomförd, vill du starta om dm-tjänsten?"

#: drakedm:75
#, c-format
msgid ""
"You are going to close all running programs and lose your current session. "
"Are you really sure that you want to restart the dm service?"
msgstr ""
"Du kommer att stänga alla aktiva program och förlora nuvarande session. Är "
"du riktigt säker på att du vill starta om tjänsten dm?"

#: drakfont:187
#, c-format
msgid "Search installed fonts"
msgstr "Sök installerade teckensnitt"

#: drakfont:189
#, c-format
msgid "Unselect fonts installed"
msgstr "Avmarkera installerade teckensnitt"

#: drakfont:213
#, c-format
msgid "No fonts found"
msgstr "Inga teckensnitt hittades"

#: drakfont:217
#, c-format
msgid "parse all fonts"
msgstr "tolka alla teckensnitt"

#: drakfont:222 drakfont:263 drakfont:338 drakfont:379 drakfont:383
#: drakfont:409 drakfont:427 drakfont:435
#, c-format
msgid "done"
msgstr "klar"

#: drakfont:226
#, c-format
msgid "Could not find any font in your mounted partitions"
msgstr "Kunde inte hitta några teckensnitt på monterade partitioner"

#: drakfont:261
#, c-format
msgid "Reselect correct fonts"
msgstr "Välj om korrekta teckensnitt"

#: drakfont:264
#, c-format
msgid "Could not find any font.\n"
msgstr "Kunde inte hitta några teckensnitt.\n"

#: drakfont:274
#, c-format
msgid "Search for fonts in installed list"
msgstr "Sök teckensnitt i installerad lista"

#: drakfont:298
#, c-format
msgid "%s fonts conversion"
msgstr "konvertering av %s-teckensnitt"

#: drakfont:336
#, c-format
msgid "Fonts copy"
msgstr "Kopiera teckensnitt"

#: drakfont:339
#, c-format
msgid "True Type fonts installation"
msgstr "Installation av True Type-teckensnitt"

#: drakfont:347
#, c-format
msgid "please wait during ttmkfdir..."
msgstr "vänta medan ttmkfdir..."

#: drakfont:348
#, c-format
msgid "True Type install done"
msgstr "Installation av True Type klar"

#: drakfont:354 drakfont:369
#, c-format
msgid "type1inst building"
msgstr "type1inst-byggning"

#: drakfont:363
#, c-format
msgid "Ghostscript referencing"
msgstr "Ghostscript-referenser"

#: drakfont:380
#, c-format
msgid "Suppress Temporary Files"
msgstr "Stäng av temporära filer"

#: drakfont:425 drakfont:431
#, c-format
msgid "Suppress Fonts Files"
msgstr "Stäng av teckensnittsfiler"

#: drakfont:439
#, c-format
msgid ""
"Before installing any fonts, be sure that you have the right to use and "
"install them on your system.\n"
"\n"
"You can install the fonts the normal way. In rare cases, bogus fonts may "
"hang up your X Server."
msgstr ""
"Innan du installerar några teckensnitt måste du vara säker på att du har "
"rätt att använda och installera dem på systemet.\n"
"\n"
"-Du kan installera teckensnitten på det vanliga sättet. I sällsynta fall kan "
"felaktiga teckensnitt hänga X-servern."

#: drakfont:478
#, c-format
msgid "Font Installation"
msgstr "Font Installation"

#: drakfont:489
#, c-format
msgid "DrakFont"
msgstr "DrakFont"

#: drakfont:490 drakfont:642
#, c-format
msgid "Font List"
msgstr "Teckensnittslista"

#: drakfont:493
#, c-format
msgid "Get Windows Fonts"
msgstr "Importera Windows teckensnitt"

#: drakfont:499
#, c-format
msgid "About"
msgstr "Om"

#: drakfont:500 drakfont:541
#, c-format
msgid "Options"
msgstr "Alternativ"

#: drakfont:501 drakfont:721
#, c-format
msgid "Uninstall"
msgstr "Avinstallera"

#: drakfont:502
#, c-format
msgid "Import"
msgstr "Importera"

#: drakfont:520
#, c-format
msgid "Drakfont"
msgstr "Drakfont"

#: drakfont:522 harddrake2:235
#, c-format
msgid "Copyright (C) %s by Mandriva"
msgstr "Copyright (C) %s, Mandriva"

#: drakfont:524
#, c-format
msgid "Font installer."
msgstr "Font installerare."

#: drakfont:526 harddrake2:239
#, c-format
msgid "Mandriva Linux"
msgstr "Mandriva Linux"

#. -PO: put here name(s) and email(s) of translator(s) (eg: "John Smith <jsmith@nowhere.com>")
#. -PO: put here name(s) and email(s) of translator(s) (eg: "John Smith <jsmith@nowhere.com>")
#: drakfont:533 harddrake2:244
#, c-format
msgid "_: Translator(s) name(s) & email(s)\n"
msgstr ""
"Thomas Backlund <tmb@mandriva.org>\n"
"Lars Westergren <lars.westergren@home.se>\n"
"Magnus Björklöf <bjorklof@nic.fi>\n"
"Mattias Newzella <newzella@linux.nu>\n"
"Mattias Dahlberg <voz@home.se>\n"
"Fuad Sabanovic <manijak@telia.com>\n"
"Kenneth Krekula\n"

#: drakfont:543
#, c-format
msgid "Choose the applications that will support the fonts:"
msgstr "Välj de program som ska använda teckensnitten:"

#: drakfont:554
#, c-format
msgid "Ghostscript"
msgstr "Ghostscript"

#: drakfont:555
#, c-format
msgid "OpenOffice.org"
msgstr "OpenOffice.org"

#: drakfont:556
#, c-format
msgid "Abiword"
msgstr "Abiword"

#: drakfont:557
#, c-format
msgid "Generic Printers"
msgstr "Allmänna skrivare"

#: drakfont:562 drakfont:572 draksplash:180 drakups:210
#, c-format
msgid "Ok"
msgstr "Ok"

#: drakfont:571
#, c-format
msgid "Select the font file or directory and click on 'Add'"
msgstr "Välj teckensnittsfilen eller katalogen och klicka på Lägg till"

#: drakfont:572
#, c-format
msgid "File Selection"
msgstr "Filval"

#: drakfont:572 drakfont:652 drakfont:736 draksplash:180 drakups:217
#: logdrake:175
#, c-format
msgid "Cancel"
msgstr "Avbryt"

#: drakfont:576
#, c-format
msgid "Fonts"
msgstr "Teckensnitt"

#: drakfont:640 draksec:330
#, c-format
msgid "Import fonts"
msgstr "Importera teckensnitt"

#: drakfont:646 drakups:299 drakups:361 drakups:381
#, c-format
msgid "Add"
msgstr "Lägg till"

#: drakfont:647 drakfont:735 drakups:301 drakups:363 drakups:383
#, c-format
msgid "Remove"
msgstr "Ta bort"

#: drakfont:653
#, c-format
msgid "Install"
msgstr "Installera"

#: drakfont:684
#, c-format
msgid "Are you sure you want to uninstall the following fonts?"
msgstr "Är du säker på att du vill avinstallera följande fonter?"

#: drakfont:688 draksec:59 harddrake2:324
#, c-format
msgid "Yes"
msgstr "Ja"

#: drakfont:690 draksec:58 harddrake2:325
#, c-format
msgid "No"
msgstr "Nej"

#: drakfont:729
#, c-format
msgid "Unselect All"
msgstr "Avmarkera alla"

#: drakfont:732
#, c-format
msgid "Select All"
msgstr "Markera alla"

#: drakfont:749
#, c-format
msgid "Importing fonts"
msgstr "Importerar teckensnitt"

#: drakfont:753 drakfont:773
#, c-format
msgid "Initial tests"
msgstr "Initiala tester"

#: drakfont:754
#, c-format
msgid "Copy fonts on your system"
msgstr "Kopierar teckensnitt till systemet"

#: drakfont:755
#, c-format
msgid "Install & convert Fonts"
msgstr "Installerar och konverterar teckensnitt"

#: drakfont:756
#, c-format
msgid "Post Install"
msgstr "Bearbetar installation"

#: drakfont:768
#, fuzzy, c-format
msgid "Removing fonts"
msgstr "Importerar teckensnitt"

#: drakfont:774
#, c-format
msgid "Remove fonts on your system"
msgstr "Tar bort teckensnitt från systemet"

#: drakfont:775
#, c-format
msgid "Post Uninstall"
msgstr "Bearbetar avinstallation"

#: drakhelp:17
#, c-format
msgid ""
" drakhelp 0.1\n"
"Copyright (C) %s Mandriva.\n"
"This is free software and may be redistributed under the terms of the GNU "
"GPL.\n"
"\n"
"Usage: \n"
msgstr ""
" drakhelp 0.1\n"
"Copyright (C) %s Mandriva.\n"
"Detta är fri mjukvara som kan spridas under de villkor som definieras i GNU "
"GPL.\n"
"\n"
"Användning: \n"

#: drakhelp:22
#, c-format
msgid " --help                - display this help     \n"
msgstr " --help                - visa denna hjälp     \n"

#: drakhelp:23
#, c-format
msgid ""
" --id <id_label>       - load the html help page which refers to id_label\n"
msgstr ""
" --id <id_label>       - ladda html hjälpsidan som refererar till id_label\n"

#: drakhelp:24
#, c-format
msgid ""
" --doc <link>          - link to another web page ( for WM welcome "
"frontend)\n"
msgstr ""
" --doc <länk>          - länk till en annan websida ( för WM välkomst "
"frontend)\n"

#: drakhelp:52
#, c-format
msgid "Mandriva Linux Help Center"
msgstr "Mandriva Linux kontrollcentral"

#: drakhelp:52
#, c-format
msgid "No Help entry for %s\n"
msgstr "Ingen hjälp för %s\n"

#: drakperm:23
#, c-format
msgid "System settings"
msgstr "Systeminställningar"

#: drakperm:24
#, c-format
msgid "Custom settings"
msgstr "Anpassade inställningar"

#: drakperm:25
#, c-format
msgid "Custom & system settings"
msgstr "Anpassade och systeminställningar"

#: drakperm:33
#, c-format
msgid "Security Permissions"
msgstr "Säkerhets behörigheter"

#: drakperm:45
#, c-format
msgid "Editable"
msgstr "Redigerbar"

#: drakperm:50 drakperm:319
#, c-format
msgid "Path"
msgstr "Sökväg"

#: drakperm:50 drakperm:248
#, c-format
msgid "User"
msgstr "Användare"

#: drakperm:50 drakperm:248
#, c-format
msgid "Group"
msgstr "Grupp"

#: drakperm:50 drakperm:331
#, c-format
msgid "Permissions"
msgstr "Behörigheter"

#: drakperm:60
#, c-format
msgid "Add a new rule"
msgstr "Lägg till ny regel"

#: drakperm:67 drakperm:102 drakperm:127
#, c-format
msgid "Edit current rule"
msgstr "Redigera aktuell regel"

#: drakperm:109
#, c-format
msgid ""
"Here you can see files to use in order to fix permissions, owners, and "
"groups via msec.\n"
"You can also edit your own rules which will owerwrite the default rules."
msgstr ""
"Här kan du se filer som används för att korrigera behörigheter, ägare och "
"grupper via msec.\n"
"Du kan också redigera dina egna regler vilka kommer att överskrida "
"standardreglerna."

#: drakperm:111
#, c-format
msgid ""
"The current security level is %s.\n"
"Select permissions to see/edit"
msgstr ""
"Aktuell säkerhetnivå är %s\n"
"Välj rättigheter för att se/ändra"

#: drakperm:123
#, c-format
msgid "Up"
msgstr "Upp"

#: drakperm:123
#, c-format
msgid "Move selected rule up one level"
msgstr "Flytta upp vald regel en nivå"

#: drakperm:124
#, c-format
msgid "Down"
msgstr "Ner"

#: drakperm:124
#, c-format
msgid "Move selected rule down one level"
msgstr "Flytta ner vald regel en nivå"

#: drakperm:125
#, c-format
msgid "Add a rule"
msgstr "Lägg till en regel"

#: drakperm:125
#, c-format
msgid "Add a new rule at the end"
msgstr "Lägg till en ny regel vid slutet"

#: drakperm:126
#, c-format
msgid "Delete"
msgstr "Ta bort"

#: drakperm:126
#, c-format
msgid "Delete selected rule"
msgstr "Ta bort vald regel"

#: drakperm:127 drakups:300 drakups:362 drakups:382
#, c-format
msgid "Edit"
msgstr "Redigera"

#: drakperm:240
#, c-format
msgid "browse"
msgstr "bläddra"

#: drakperm:245
#, c-format
msgid "user"
msgstr "användare"

#: drakperm:245
#, c-format
msgid "group"
msgstr "grupp"

#: drakperm:245
#, c-format
msgid "other"
msgstr "annan"

#: drakperm:248
#, c-format
msgid "Other"
msgstr "Annan"

#: drakperm:250
#, c-format
msgid "Read"
msgstr "Läs"

#. -PO: here %s will be either "user", "group" or "other"
#: drakperm:253
#, c-format
msgid "Enable \"%s\" to read the file"
msgstr "Aktivera \"%s\" för att läsa filen"

#: drakperm:257
#, c-format
msgid "Write"
msgstr "Skriv"

#. -PO: here %s will be either "user", "group" or "other"
#: drakperm:260
#, c-format
msgid "Enable \"%s\" to write the file"
msgstr "Aktivera \"%s\"för att skriva till filen"

#: drakperm:264
#, c-format
msgid "Execute"
msgstr "Kör"

#. -PO: here %s will be either "user", "group" or "other"
#: drakperm:267
#, c-format
msgid "Enable \"%s\" to execute the file"
msgstr "Aktivera \"%s\" för att köra filen"

#: drakperm:270
#, c-format
msgid "Sticky-bit"
msgstr "Klistrig bit"

#: drakperm:270
#, c-format
msgid ""
"Used for directory:\n"
" only owner of directory or file in this directory can delete it"
msgstr ""
"Används för katalog:\n"
" endast ägaren av kataloger eller filer i den här katalogen kan ta bort dem"

#: drakperm:271
#, c-format
msgid "Set-UID"
msgstr "Set-UID"

#: drakperm:271
#, c-format
msgid "Use owner id for execution"
msgstr "Använd ägar-id vid exekvering"

#: drakperm:272
#, c-format
msgid "Set-GID"
msgstr "Set-GID"

#: drakperm:272
#, c-format
msgid "Use group id for execution"
msgstr "Använd grupp-id vid exekvering"

#: drakperm:289
#, c-format
msgid "User:"
msgstr "Användare:"

#: drakperm:290
#, c-format
msgid "Group:"
msgstr "Grupp:"

#: drakperm:294
#, c-format
msgid "Current user"
msgstr "Aktuell användare"

#: drakperm:295
#, c-format
msgid "When checked, owner and group will not be changed"
msgstr "Om markerad kommer ägare och grupp inte att ändras"

#: drakperm:305
#, c-format
msgid "Path selection"
msgstr "Val av sökväg"

#: drakperm:325
#, c-format
msgid "Property"
msgstr "Egenskap"

#: drakperm:375
#, c-format
msgid ""
"The first character of the path must be a slash (\"/\"):\n"
"\"%s\""
msgstr ""
"Första tecknet i sökvägen måste vara tecknet dela (\"/\"):\n"
"\"%s\""

#: drakperm:385
#, c-format
msgid "Both the username and the group must valid!"
msgstr "Både användarnamn och grupp måste existera!"

#: drakperm:386
#, c-format
msgid "User: %s"
msgstr "Användare: %s"

#: drakperm:387
#, c-format
msgid "Group: %s"
msgstr "Grupp: %s"

#: draksec:53
#, c-format
msgid "ALL"
msgstr "ALLA"

#: draksec:54
#, c-format
msgid "LOCAL"
msgstr "LOKAL"

#: draksec:55
#, c-format
msgid "NONE"
msgstr "INGEN"

#: draksec:56
#, c-format
msgid "Default"
msgstr "Standard"

#: draksec:57
#, c-format
msgid "Ignore"
msgstr "Ignorera"

#: draksec:72 drakups:99 harddrake2:370 remove-unselected-locales:36
#: remove-unused-hardware-packages:32 scannerdrake:66 scannerdrake:70
#: scannerdrake:78 scannerdrake:319 scannerdrake:368 scannerdrake:505
#: scannerdrake:509 scannerdrake:531 service_harddrake:254
#, c-format
msgid "Please wait"
msgstr "Vänta"

#. -PO: Do not alter the <span ..> and </span> tags.
#. -PO: Translate the security levels (Poor, Standard, High, Higher and Paranoid) in the same way, you translated these individuals words.
#. -PO: keep the double empty lines between sections, this is formatted a la LaTeX.
#: draksec:93
#, c-format
msgid ""
"Here, you can setup the security level and administrator of your machine.\n"
"\n"
"\n"
"The '<span weight=\"bold\">Security Administrator</span>' is the one who "
"will receive security alerts if the\n"
"'<span weight=\"bold\">Security Alerts</span>' option is set. It can be a "
"username or an email.\n"
"\n"
"\n"
"The '<span weight=\"bold\">Security Level</span>' menu allows you to select "
"one of the six preconfigured security levels\n"
"provided with msec. These levels range from '<span weight=\"bold\">poor</"
"span>' security and ease of use, to\n"
"'<span weight=\"bold\">paranoid</span>' config, suitable for very sensitive "
"server applications:\n"
"\n"
"\n"
"<span foreground=\"royalblue3\">Poor</span>: This is a totally unsafe but "
"very\n"
"easy to use security level. It should only be used for machines not "
"connected to\n"
"any network and that are not accessible to everybody.\n"
"\n"
"\n"
"<span foreground=\"royalblue3\">Standard</span>: This is the standard "
"security\n"
"recommended for a computer that will be used to connect to the Internet as "
"a\n"
"client.\n"
"\n"
"\n"
"<span foreground=\"royalblue3\">High</span>: There are already some\n"
"restrictions, and more automatic checks are run every night.\n"
"\n"
"\n"
"<span foreground=\"royalblue3\">Higher</span>: The security is now high "
"enough\n"
"to use the system as a server which can accept connections from many "
"clients. If\n"
"your machine is only a client on the Internet, you should choose a lower "
"level.\n"
"\n"
"\n"
"<span foreground=\"royalblue3\">Paranoid</span>: This is similar to the "
"previous\n"
"level, but the system is entirely closed and security features are at their\n"
"maximum"
msgstr ""
"Nu kan du välja säkerhetsnivå och administratör för din dator.\n"
"\n"
"\n"
"'<span weight=\"bold\">Säkerhetsadministratören</span>' är den som kommer "
"att få säkerhetslarm om\n"
"alternativet '<span weight=\"bold\">Säkerhetslarm'</span>' har valts. "
"Säkerhetsadministratören kan\n"
"identifieras genom ett användarnamn eller en e-postadress.\n"
"\n"
"\n"
"Menyn för '<span weight=\"bold\">säkerhetsnivåer</span>' gör det möjligt att "
"välja en av sex\n"
"fördefinierade säkerhetsnivåer för msec. Dessa nivåer går från\n"
"'<span weight=\"bold\">enkel</span>' användning men med dålig säkerhet till "
"en '<span weight=\"bold\">paranoid</span>'\n"
"inställning som är lämplig för mycket känsliga serverprogram.\n"
"\n"
"\n"
"<span foreground=\"royalblue3\">Låg</span>: Detta är en totalt\n"
"osäker men mycket lättanvänd säkerhetsnivå. Den bör endast användas\n"
"för datorer som inte är uppkopplade mot något nätverk och som inte är "
"placerad\n"
"så att den kan användas av obehöriga.\n"
"\n"
"\n"
"<span foreground=\"royalblue3\">Normal</span>: Denna standardnivå\n"
"rekommenderas för datorer som kommer att vara uppkopplade mot\n"
"Internet som en klient.\n"
"\n"
"\n"
"<span foreground=\"royalblue3\">Hög</span>: Det finns några\n"
"begränsningar, och flera automatiska kontroller körs varje natt.\n"
"\n"
"\n"
"<span foreground=\"royalblue3\">Högre</span>: På den här \n"
"säkerhetsnivån är det möjligt att använda datorn som en server.\n"
"Säkerheten är hög nog för en server som tillåter att många klienter ansluter "
"mot den.\n"
"Observera: om datorn enbart är en klient bör du välja en lägre nivå.\n"
"\n"
"\n"
" <span foreground=\"royalblue3\">Paranoid</span>:Baserat på föregående nivå, "
"men systemet är helt stängt.\n"
"Alla säkerhetsfunktioner är aktiverade."

#: draksec:147 harddrake2:214
#, c-format
msgid ""
"Description of the fields:\n"
"\n"
msgstr ""
"Beskrivning av fälten:\n"
"\n"

#: draksec:161
#, c-format
msgid "(default value: %s)"
msgstr "(standardvärde: %s)"

#: draksec:166
#, c-format
msgid "Security Level and Checks"
msgstr "Säkerhetsnivå och Kontroller"

#: draksec:203
#, c-format
msgid "Security Level:"
msgstr "Säkerhetsnivå:"

#: draksec:206
#, c-format
msgid "Security Alerts:"
msgstr "Säkerhetsunderrättelser:"

#: draksec:210
#, c-format
msgid "Security Administrator:"
msgstr "Säkerhetsadministratör:"

#: draksec:212
#, c-format
msgid "Basic options"
msgstr "Grundinställningar"

#: draksec:226
#, c-format
msgid "Network Options"
msgstr "Nätverksalternativ"

#: draksec:226
#, c-format
msgid "System Options"
msgstr "Systemalternativ"

#: draksec:261
#, c-format
msgid "Periodic Checks"
msgstr "Periodiska kontroller"

#: draksec:282
#, c-format
msgid "No password"
msgstr "Inget lösenord"

#: draksec:283
#, c-format
msgid "Root password"
msgstr "Root lösenord"

#: draksec:284
#, c-format
msgid "User password"
msgstr "Användarlösenord"

#: draksec:314 draksec:360
#, c-format
msgid "Software Management"
msgstr "Programhantering"

#: draksec:315
#, c-format
msgid "Mandriva Update"
msgstr "Mandriva Update"

#: draksec:316
#, c-format
msgid "Software Media Manager"
msgstr "Programhanterare för media"

#: draksec:317
#, c-format
msgid "Configure 3D Desktop effects"
msgstr "Konfigurera 3D skrivbordseffekter"

#: draksec:318
#, c-format
msgid "Graphical Server Configuration"
msgstr "Grafisk Server Konfiguration"

#: draksec:319
#, c-format
msgid "Mouse Configuration"
msgstr "Mus Konfiguration"

#: draksec:320
#, c-format
msgid "Keyboard Configuration"
msgstr "Tangentbord Konfiguration"

#: draksec:321
#, c-format