https://wiki.archlinux.org/api.php?action=feedcontributions&user=Ropez&feedformat=atomArchWiki - User contributions [en]2024-03-29T00:56:13ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Talk:Firefox&diff=80958Talk:Firefox2009-10-29T11:08:13Z<p>Ropez: /* File associations */</p>
<hr />
<div>* [[User:Whoops|Whoops]] 11:18, 14 April 2009 (EDT) : I'm not sure if the "Dark Desktop Themes" Tip I added (a) works for all other DE's (b) concerns enough people so it's supposed to be here in the main article (instead of "Tips & Tweaks" or something). Also there might be a better solution, but I haven't been able to find one - been searching around quite some time until I settled for this one, so I put it here.<br />
<br />
== File associations ==<br />
<br />
:For non-GNOME users, Firefox may not associate file types (in the "Open With" part of the download dialog). Installing libgnome ammends the problem:<br />
::This had no effect. --[[User:Ropez|Ropez]] 08:17, 28 October 2009 (EDT)<br />
:::''Update'': It seems to work now. Maybe a login is required. --[[User:Ropez|Ropez]] 07:08, 29 October 2009 (EDT)</div>Ropezhttps://wiki.archlinux.org/index.php?title=Talk:Firefox&diff=80797Talk:Firefox2009-10-28T12:17:24Z<p>Ropez: /* File associations */</p>
<hr />
<div>* [[User:Whoops|Whoops]] 11:18, 14 April 2009 (EDT) : I'm not sure if the "Dark Desktop Themes" Tip I added (a) works for all other DE's (b) concerns enough people so it's supposed to be here in the main article (instead of "Tips & Tweaks" or something). Also there might be a better solution, but I haven't been able to find one - been searching around quite some time until I settled for this one, so I put it here.<br />
<br />
== File associations ==<br />
<br />
:For non-GNOME users, Firefox may not associate file types (in the "Open With" part of the download dialog). Installing libgnome ammends the problem:<br />
::This had no effect. --[[User:Ropez|Ropez]] 08:17, 28 October 2009 (EDT)</div>Ropezhttps://wiki.archlinux.org/index.php?title=Talk:Firefox&diff=80796Talk:Firefox2009-10-28T12:16:19Z<p>Ropez: /* File associations */ new section</p>
<hr />
<div>* [[User:Whoops|Whoops]] 11:18, 14 April 2009 (EDT) : I'm not sure if the "Dark Desktop Themes" Tip I added (a) works for all other DE's (b) concerns enough people so it's supposed to be here in the main article (instead of "Tips & Tweaks" or something). Also there might be a better solution, but I haven't been able to find one - been searching around quite some time until I settled for this one, so I put it here.<br />
<br />
== File associations ==<br />
<br />
For non-GNOME users, Firefox may not associate file types (in the "Open With" part of the download dialog). Installing libgnome ammends the problem:</div>Ropezhttps://wiki.archlinux.org/index.php?title=Talk:Desktop_environment&diff=68711Talk:Desktop environment2009-05-14T15:11:15Z<p>Ropez: /* kdebindings */</p>
<hr />
<div>== kdebindings ==<br />
kdebindings is not "Key bindings", but bindings for writing kde applications in languages other than C++, --[[User:Ropez|Ropez]] 11:11, 14 May 2009 (EDT)</div>Ropezhttps://wiki.archlinux.org/index.php?title=Talk:Desktop_environment&diff=68710Talk:Desktop environment2009-05-14T15:11:02Z<p>Ropez: Created page with '== kdebindings == kdebindings is not "Key bindings", but bindings for writing kde applications in languages other than C++'</p>
<hr />
<div>== kdebindings ==<br />
kdebindings is not "Key bindings", but bindings for writing kde applications in languages other than C++</div>Ropezhttps://wiki.archlinux.org/index.php?title=Talk:SCM_Example_Trac&diff=59748Talk:SCM Example Trac2009-02-01T10:24:43Z<p>Ropez: </p>
<hr />
<div>== svn-admin ==<br />
<br />
: ''trac-admin /mnt/rpo/svn/MY_PROJECT permission add authenticated TRAC_ADMIN''<br />
<br />
The syntax for permission add is:<br />
: ''trac-admin </path/to/projenv> permission add <user> <action> [action] [...]''<br />
<br />
it should be /mnt/rpo/'''trac'''/MY_PROJECT (i changed that because im very sure about that)<br />
<br />
and authenticated is an alias user for all Unix-Users on the system right?<br />
<br />
also the code for /etc/httpd/conf/httpd.conf is not working with my setup. I think there missing <Directory>-Directives? i use now other Configuration with ScriptAlias. --[[User:Apoc|Apoc]] 15:17, 8 June 2008 (EDT)<br />
<br />
----<br />
<br />
<br />
<br />
Apoc,could you please update the wiki to fix the Apache issue?<br />
<br />
I cant seem to figure whats the problem with it, and cant make it work.<br />
<br />
--[[User:Sudcrow|sud_crow]] 10:35, 8 September 2008 (EDT)<br />
: The '''AuthName "svnrepos"''' in the apache config file needs to match the "realm" in the '''htdigest''' command. The apache config should be changed to '''AuthName "scm"'''.<br />
: --[[User:Ropez|Ropez]] 05:24, 1 February 2009 (EST)</div>Ropezhttps://wiki.archlinux.org/index.php?title=Tweaking_for_a_faster_boot_time&diff=58296Tweaking for a faster boot time2009-01-18T11:59:56Z<p>Ropez: /* Additional Resources */ Wiki syntax</p>
<hr />
<div>[[Category:HOWTOs (English)]]<br />
[[Category:Boot process (English)]]<br />
[[Category:Kernel (English)]]<br />
[[Category:Hardware detection and troubleshooting (English)]]<br />
<br />
== Summary ==<br />
<br />
This is the result of 2 days of tweaking for a faster boot time.<br />
<br />
Why: just because I/you can, for other people to see what is possible with (Arch)linux.<br />
<br />
See the [http://bbs.archlinux.org/viewtopic.php?id=62518 forumtopic], the scripts may differ from the one in the topic because of further tweaking.<br />
<br />
Grub to agetty in 13s (coming from 24s) on a Dell Inspiron 1525 (Core2Duo T5450 1,66 Ghz) (bootcharts in same [http://bbs.archlinux.org/viewtopic.php?id=62518 forumtopic])<br />
<br />
== /etc/inittab ==<br />
<br />
This will not increase the speed that much, but every little bit helps.<br />
<br />
#<br />
# /etc/inittab<br />
#<br />
<br />
# Boot to console<br />
id:3:initdefault:<br />
<br />
# Use once instead of wait<br />
rc::sysinit:/etc/rc.sysinit<br />
rs:S1:once:/etc/rc.single<br />
rm:2345:once:/etc/rc.multi<br />
rh:06:once:/etc/rc.shutdown<br />
su:S:once:/sbin/sulogin -p<br />
<br />
#Start lesser agetty's and login from agetty<br />
c1:2345:respawn:/sbin/agetty -8 38400 vc/1 linux<br />
c2:2345:respawn:/sbin/agetty -8 38400 vc/2 linux<br />
<br />
ca::ctrlaltdel:/sbin/shutdown -t3 -r now<br />
<br />
# End of file<br />
<br />
== /etc/mkinitcpio.conf ==<br />
<br />
This didn't really speed up my boot, but on some systems it does.<br />
<br />
This didn't work for me on Kernel 2.6.27 and needed to put Udev back in HOOKS, never tried to figure out why it didn't work. I tried again when installing kernel 2.6.28 and that did work. If you use a USB keyboard, add 'usbinput' in HOOKS<br />
<br />
My boot device was a separate partion on a SATA drive formatted as ext3. I needed to enable AHCI in my BIOS, before this it used a ATA module.<br />
<br />
#<br />
# /etc/mkinitcpio<br />
#<br />
<br />
#Load necessary modules to mount boot device<br />
MODULES="ahci sd-mod ext3"<br />
BINARIES=""<br />
FILES=""<br />
HOOKS="base"<br />
<br />
# End of file<br />
<br />
== /etc/rc.sysinit ==<br />
<br />
Here I had the most work, and gained the most speed.<br />
<br />
I took out the stuff I didn't use: LVM, RAID and Encrypted devices.<br />
<br />
Including default behavior for the clock, LOCALE, KEYMAP and HOSTNAME directly into this file, so it doesn't have to load it from [[#/etc/rc.conf]].<br />
<br />
I've added a lot of ampersands to send these processes to the background. Watch out with what you send to the background. If something is send to the background that is necessary by the next command. The first time '/sbin/hwclock' and when '/sbin/udevadm settled' is called are examples of that.<br />
<br />
Also I've put '/sbin/udevadm trigger &' earlier and in background, so it had the time to load until '/sbin/udevadm settled' is called. <br />
<br />
Putting in 'status "Updating Module Dependencies" /sbin/depmod -A' in comment requires you to run it when you install new modules. It is not a required for boot, so I don't know what it does there in first time.<br />
<br />
#!/bin/bash<br />
#<br />
# /etc/rc.sysinit<br />
#<br />
<br />
. /etc/rc.conf<br />
. /etc/rc.d/functions<br />
<br />
echo " "<br />
printhl "Arch Linux\n"<br />
printhl "${C_H2}http://www.archlinux.org"<br />
printhl "Copyright 2002-2007 Judd Vinet"<br />
printhl "Copyright 2007-2008 Aaron Griffin"<br />
printhl "Distributed under the GNU General Public License (GPL)"<br />
printsep<br />
<br />
# mount /proc, /sys and our RAM /dev<br />
/bin/mount -n -t ramfs none /dev<br />
/bin/mount -n -t proc none /proc<br />
/bin/mount -n -t sysfs none /sys<br />
<br />
# Create our default nodes that minilogd may need<br />
/bin/mknod /dev/null c 1 3<br />
/bin/mknod /dev/zero c 1 5<br />
/bin/mknod /dev/console c 5 1<br />
<br />
# More initial /dev setup that udev doesn't do<br />
/bin/ln -snf /proc/self/fd /dev/fd<br />
/bin/ln -snf /proc/self/fd/0 /dev/stdin<br />
/bin/ln -snf /proc/self/fd/1 /dev/stdout<br />
/bin/ln -snf /proc/self/fd/2 /dev/stderr<br />
/bin/ln -snf /proc/kcore /dev/core<br />
/bin/mkdir /dev/pts<br />
/bin/mkdir /dev/shm<br />
<br />
# start up our mini logger until syslog takes over<br />
/sbin/minilogd<br />
<br />
# anything more serious than KERN_WARNING goes to the console<br />
# 'verbose' cmdline parameter enables more messages<br />
if /bin/grep -q " verbose" /proc/cmdline; then<br />
/bin/dmesg -n 8<br />
else<br />
/bin/dmesg -n 3<br />
fi<br />
<br />
# enable rtc access<br />
/sbin/modprobe rtc-cmos >/dev/null 2>&1<br />
RTC_MAJOR=$(/bin/grep -w rtc /proc/devices 2>/dev/null); RTC_MAJOR="${RTC_MAJOR%% *}"<br />
if [ -n "$RTC_MAJOR" ]; then<br />
/bin/mkdir /dev/misc/<br />
/bin/mknod /dev/misc/rtc0 c $RTC_MAJOR 0<br />
/bin/ln -s /dev/misc/rtc0 /dev/rtc<br />
fi<br />
<br />
# Set clock early to fix some bugs with filesystem checks<br />
# Clock is set again later to match rc.conf<br />
if [ -f /etc/localtime ]; then<br />
/sbin/hwclock --hctosys --localtime --directisa --noadjfile<br />
fi<br />
<br />
echo > /proc/sys/kernel/hotplug<br />
<br />
if [ -x /sbin/udevadm -a -d /sys/block ]; then<br />
# We have udev and /sys appears to be mounted, use UDev<br />
stat_busy "Starting UDev Daemon"<br />
/sbin/udevd --daemon<br />
/sbin/udevadm trigger &<br />
udevstart="$(/bin/date +%s%0N)"<br />
stat_done<br />
else<br />
# Static /dev, our last resort<br />
status "Using static /dev filesystem" true<br />
fi<br />
<br />
# Load modules from the MODULES array defined in rc.conf<br />
if ! [ "$load_modules" = "off" ]; then<br />
if [ -f /proc/modules ]; then<br />
stat_busy "Loading Modules"<br />
for mod in "${MODULES[@]}"; do<br />
if [ "$mod" = "${mod#!}" ]; then<br />
/sbin/modprobe $mod &<br />
fi<br />
done<br />
stat_done<br />
fi<br />
if [ -d /proc/acpi ]; then<br />
stat_busy "Loading standard ACPI modules"<br />
ACPI_MODULES="ac battery button fan processor thermal"<br />
k="$(echo $BLACKLIST ${MOD_BLACKLIST[@]} | /bin/sed 's|-|_|g')"<br />
j="$(echo ${MODULES[@]} | /bin/sed 's|-|_|g')"<br />
#add disabled MODULES (!) to blacklist - much requested feature<br />
for m in ${j}; do<br />
[ "$m" != "${m#!}" ] && k="${k} ${m#!}"<br />
done<br />
# add disablemodules= from commandline to blacklist<br />
k="${k} $(echo ${disablemodules} | /bin/sed 's|-|_|g' | /bin/sed 's|,| |g')"<br />
for n in ${ACPI_MODULES}; do<br />
if ! echo ${k} | /bin/grep "\<$n\>" 2>&1 >/dev/null; then<br />
/sbin/modprobe $n > /dev/null 2>&1 &<br />
fi<br />
done<br />
stat_done<br />
fi<br />
fi<br />
<br />
# run udev uevents<br />
if /bin/pidof -o %PPID /sbin/udevd >/dev/null; then<br />
stat_busy "Loading UDev uevents"<br />
/sbin/udevadm settle<br />
stat_done<br />
udevend="$(/bin/date +%s%0N)"<br />
printhl " UDev uevent processing time: $((($udevend-$udevstart)/1000000))ms"<br />
fi<br />
<br />
# bring up the loopback interface<br />
if [ -d /sys/class/net/lo ]; then<br />
stat_busy "Bringing up loopback interface"<br />
/sbin/ifconfig lo 127.0.0.1 up &<br />
if [ $? -ne 0 ]; then<br />
stat_fail<br />
else<br />
stat_done<br />
fi<br />
fi<br />
<br />
status "Mounting Root Read-only" /bin/mount -n -o remount,ro /<br />
<br />
FORCEFSCK=<br />
[ -f /forcefsck ] && FORCEFSCK="-- -f"<br />
NETFS="nonfs,nonfs4,nosmbfs,nocifs,nocodafs,noncpfs,nosysfs,noshfs,nofuse,nofuseblk"<br />
<br />
if [ -x /sbin/fsck ]; then<br />
stat_busy "Checking Filesystems"<br />
if /bin/grep -qw quiet /proc/cmdline; then<br />
/sbin/fsck -A -T -C -a -t $NETFS $FORCEFSCK >/dev/null 2>&1<br />
else<br />
/sbin/fsck -A -T -C -a -t $NETFS $FORCEFSCK 2>/dev/null<br />
fi<br />
fsckret=$?<br />
if [ ${fsckret} -gt 1 ]; then<br />
stat_fail<br />
if [ $((${fsckret}&2)) -eq 2 ]; then<br />
echo<br />
echo "********************** REBOOT REQUIRED *********************"<br />
echo "* *"<br />
echo "* The system will be rebooted automatically in 15 seconds. *"<br />
echo "* *"<br />
echo "************************************************************"<br />
echo<br />
/bin/sleep 15<br />
else<br />
echo<br />
echo "***************** FILESYSTEM CHECK FAILED ****************"<br />
echo "* *"<br />
echo "* Please repair manually and reboot. Note that the root *"<br />
echo "* file system is currently mounted read-only. To remount *"<br />
echo "* it read-write type: mount -n -o remount,rw / *"<br />
echo "* When you exit the maintenance shell the system will *"<br />
echo "* reboot automatically. *"<br />
echo "* *"<br />
echo "************************************************************"<br />
echo<br />
/sbin/sulogin -p<br />
fi<br />
echo "Automatic reboot in progress..."<br />
/bin/umount -a<br />
/bin/mount -n -o remount,ro /<br />
/sbin/reboot -f<br />
exit 0<br />
fi<br />
stat_done<br />
fi<br />
<br />
stat_busy "Mounting Local Filesystems"<br />
/bin/mount -n -o remount,rw /<br />
/bin/rm -f /etc/mtab*<br />
# make sure / gets written to /etc/mtab<br />
/bin/mount -o remount,rw /<br />
# Write /proc, /sys and /dev to /etc/mtab<br />
if [ -e /proc/mounts ]; then<br />
/bin/grep -e "/proc " -e "/sys " -e "/dev " /proc/mounts >> /etc/mtab<br />
fi<br />
# now mount all the local filesystems<br />
/bin/mount -a -t $NETFS<br />
stat_done<br />
<br />
status "Activating Swap" /sbin/swapon -a &<br />
<br />
stat_busy "Configuring System Clock"<br />
if [ ! -f /var/lib/hwclock/adjtime ]; then<br />
echo "0.0 0 0.0" > /var/lib/hwclock/adjtime &<br />
fi<br />
<br />
/bin/rm -f /etc/localtime<br />
/bin/cp "/usr/share/zoneinfo/Europe/Brussels" /etc/localtime<br />
/sbin/hwclock --hctosys --localtime --directisa<br />
stat_done<br />
<br />
if [ -f /var/run/random-seed ]; then<br />
stat_busy "Initializing Random Seed"<br />
/bin/cat /var/run/random-seed >/dev/urandom &<br />
stat_done<br />
fi<br />
<br />
stat_busy "Removing Leftover Files"<br />
/bin/rm -f /etc/nologin &>/dev/null &<br />
/bin/rm -f /etc/shutdownpid &>/dev/null &<br />
/bin/rm -f /var/lock/* &>/dev/null &<br />
/bin/rm -rf /tmp/* /tmp/.* &>/dev/null &<br />
/bin/rm -f /forcefsck &>/dev/null &<br />
(cd /var/run && /usr/bin/find . ! -type d -exec /bin/rm -f -- {} \; )<br />
: > /var/run/utmp &<br />
# Keep {x,k,g}dm happy with xorg<br />
/bin/mkdir /tmp/.ICE-unix && /bin/chmod 1777 /tmp/.ICE-unix<br />
/bin/mkdir /tmp/.X11-unix && /bin/chmod 1777 /tmp/.X11-unix<br />
stat_done<br />
<br />
#status "Updating Shared Library Links" /sbin/ldconfig<br />
#status "Updating Module Dependencies" /sbin/depmod -A &<br />
<br />
status "Setting Hostname: Pinguin" /bin/hostname "Pinguin" &<br />
<br />
# Flush old locale settings<br />
: >/etc/profile.d/locale.sh<br />
/bin/chmod 755 /etc/profile.d/locale.sh<br />
# Set user defined locale<br />
[ -z "$LOCALE" ] && LOCALE="en_US"<br />
stat_busy "Setting Locale: en_US"<br />
echo "export LANG=en_US" >>/etc/profile.d/locale.sh<br />
stat_done<br />
<br />
stat_busy "Setting Consoles to UTF-8 mode"<br />
# UTF-8 consoles are default since 2.6.24 kernel<br />
# this code is needed not only for older kernels,<br />
# but also when user has set vt.default_utf8=0 but LOCALE is *.UTF-8.<br />
for i in $(/usr/bin/seq 0 63); do<br />
usr/bin/kbd_mode -u < /dev/vc/${i}<br />
printf "\e%%G" > /dev/vc/${i}<br />
done<br />
# the $CONSOLE check helps us avoid this when running scripts from cron<br />
echo 'if [ "$CONSOLE" = "" -a "$TERM" = "linux" -a -t 1 ]; then printf "\e%%G"; fi' >>/etc/profile.d/locale.sh<br />
stat_done<br />
<br />
status "Loading Keyboard Map: be-latin1" /bin/loadkeys -q -u "be-latin1" &<br />
<br />
# Adding persistent network/cdrom generated rules<br />
if [ -f "/dev/.udev/tmp-rules--70-persistent-cd.rules" ]; then<br />
stat_busy "Adding persistent cdrom udev rules"<br />
/bin/cat /dev/.udev/tmp-rules--70-persistent-cd.rules >> /etc/udev/rules.d/70-persistent-cd.rules<br />
stat_done<br />
fi<br />
if [ -f "/dev/.udev/tmp-rules--70-persistent-net.rules" ]; then<br />
stat_busy "Adding persistent network udev rules"<br />
/bin/cat /dev/.udev/tmp-rules--70-persistent-net.rules >> /etc/udev/rules.d/70-persistent-net.rules<br />
stat_done<br />
fi<br />
<br />
# Save our dmesg output from this boot<br />
if [ -f /var/log/dmesg.log ]; then<br />
/bin/rm /var/log/dmesg.log<br />
fi<br />
/bin/dmesg > /var/log/dmesg.log &<br />
<br />
# End of file<br />
<br />
== /etc/rc.conf ==<br />
<br />
I've stripped all out of here that I included by default in [[#/etc/rc.sysinit]] and [[#/etc/rc.shutdown]].<br />
<br />
In this version the modules I need for my laptop are in the MODULES array, so the is no need to do turn MOD_AUTOLOAD on. I could strip out some modules, but didn't found the time to figure that out. The list I got from 'hwdetect --show-modules-order'. I did took out snd-hda-codec and dock, because these gave an error on load.<br />
<br />
#<br />
# /etc/rc.conf<br />
#<br />
<br />
MOD_AUTOLOAD="no"<br />
<br />
MODULES=(ac battery button processor thermal video wmi agpgart intel-agp dcdbas hid usbhid i2c-i801 i2c-core evdev <br />
ff-memless joydev pcspkr psmouse serio_raw led-class mmc_core ricoh_mmc sdhci-pci sdhci rtc-cmos rtc-core rtc-lib <br />
output iTCO_vendor_support iTCO_wdt snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-<br />
intel soundcore pata_acpi ata_generic ahci ata_piix sky2 mac80211 rfkill usb-storage usbhid usbcore ehci-hcd uhci-hcd <br />
vboxdrv vboxnetflt)<br />
<br />
DAEMONS=(syslog-ng @hal @fam @crond @alsa)<br />
<br />
# End of file<br />
<br />
In this version the modules are discovered by the system itself. I gues this is the smallest a usable /etc/rc.conf can get.<br />
<br />
MOD_AUTOLOAD="no"<br />
MODULES=()<br />
DAEMONS=(syslog-ng @hal @fam @crond @alsa)<br />
<br />
== /etc/rc.shutdown ==<br />
<br />
This doesn't have anything to do with the boot time, but with [[#/etc/rc.conf]]. By stripping out a lot out, I broke the shutdown script. In meanwhile I've taken out the unnecessary stuff (LVM, ...).<br />
<br />
#!/bin/bash<br />
#<br />
# /etc/rc.shutdown<br />
#<br />
<br />
. /etc/rc.conf<br />
. /etc/rc.d/functions<br />
<br />
# avoid staircase effect<br />
/bin/stty onlcr<br />
<br />
echo " "<br />
printhl "Initiating Shutdown..."<br />
echo " "<br />
<br />
# avoid NIS hanging syslog-ng on shutdown by unsetting the domainname<br />
if [ -x /bin/domainname ]; then<br />
/bin/domainname ""<br />
fi<br />
<br />
if [ -x /etc/rc.local.shutdown ]; then<br />
/etc/rc.local.shutdown<br />
fi<br />
<br />
if [ "$PREVLEVEL" = "3" -o "$PREVLEVEL" = "5" ]; then<br />
# Shutdown daemons<br />
let i=${#DAEMONS[@]}<br />
while [ $i -ge 0 ]; do<br />
if [ "${DAEMONS[$i]:0:1}" != '!' ]; then<br />
ck_daemon ${DAEMONS[$i]#@} || stop_daemon ${DAEMONS[$i]#@}<br />
fi<br />
let i=i-1<br />
done<br />
# find any leftover daemons and shut them down in reverse order<br />
if [ -d /var/run/daemons ]; then<br />
for daemon in $(/bin/ls -1t /var/run/daemons); do<br />
stop_daemon $daemon<br />
done<br />
fi<br />
fi<br />
<br />
# Terminate all processes<br />
stat_busy "Sending SIGTERM To Processes"<br />
/sbin/killall5 -15 &> /dev/null<br />
/bin/sleep 5<br />
stat_done<br />
<br />
stat_busy "Sending SIGKILL To Processes"<br />
/sbin/killall5 -9 &> /dev/null<br />
/bin/sleep 1<br />
stat_done<br />
<br />
stat_busy "Saving Random Seed"<br />
/bin/dd if=/dev/urandom of=/var/run/random-seed count=1 bs=512 2> /dev/null<br />
stat_done<br />
<br />
stat_busy "Saving System Clock"<br />
/bin/rm -f /etc/localtime<br />
/bin/cp "/usr/share/zoneinfo/Europe/Brussels" /etc/localtime<br />
/sbin/hwclock --systohc --localtime --directisa<br />
stat_done<br />
<br />
# removing psmouse module to fix some reboot issues on newer laptops<br />
/sbin/modprobe -r psmouse >/dev/null 2>&1<br />
<br />
# Write to wtmp file before unmounting<br />
/sbin/halt -w<br />
<br />
stat_busy "Deactivating Swap"<br />
/sbin/swapoff -a<br />
stat_done<br />
<br />
stat_busy "Unmounting Filesystems"<br />
/bin/umount -a -r -t noramfs,notmpfs,nosysfs,noproc<br />
stat_done<br />
<br />
stat_busy "Remounting Root Filesystem Read-only"<br />
/bin/mount -n -o remount,ro /<br />
stat_done<br />
<br />
# Power off or reboot<br />
if [ "$RUNLEVEL" = "0" ]; then<br />
printsep<br />
printhl "${C_H2}POWER OFF"<br />
/sbin/poweroff -d -f -h -i<br />
else<br />
printsep<br />
printhl "${C_H2}REBOOTING"<br />
# if kexec is installed and a kernel is loaded, use it<br />
[ -x /sbin/kexec ] && /sbin/kexec -e > /dev/null 2>&1<br />
/sbin/reboot -d -f -i<br />
fi<br />
<br />
# End of file<br />
<br />
== /lib/udev/load-modules.sh ==<br />
<br />
Something little, but improving, here. It takes away the blacklisting function for the MODULES array in [[#/etc/rc.conf]], but when MOD_AUTOLOAD off it's not used either way. <br />
<br />
Check [[Speedup_udev#Blacklisting_modules]] if you need blacklisting. I got this tweak from the same page, there are other ways to do this on there.<br />
<br />
#!/bin/sh<br />
#<br />
# /lib/udev/load-modules.sh<br />
#<br />
<br />
/sbin/modprobe $1 &<br />
<br />
# End of file<br />
<br />
= Additional Resources =<br />
* [[The Arch boot process]]<br />
* [[Fast boot without recompiling the kernel]]<br />
* [[Udev]]<br />
* [[Speedup udev]]<br />
* [[Daemons]]<br />
* [[Rc.conf]]<br />
* [[Configuring mkinitcpio]]<br />
* http://bbs.archlinux.org/search.php - a lot of searching :D<br />
* http://kmandla.wordpress.com/howtos/ - some great howtos<br />
* And others...</div>Ropez