Darcsweb-Url: 
http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=upstart-jobs;a=darcs_commitdiff;h=20070429203722-46e39-065dd68b3c1b639d171289e368217c2fffee1567.gz;

[upstart-msg: brand new colourful bootup (with help from vmiklos). this makes 
it much easier to distinguish upstart errors from echo's in the jobs
AlexExtreme <[EMAIL PROTECTED]>**20070429203722] {
adddir ./etc/sysconfig
hunk ./etc/Makefile 3
+       make -C sysconfig
hunk ./etc/Makefile 7
+       make -C sysconfig DESTDIR=$(DESTDIR) install
hunk ./etc/event.d/bootclean 9
-       echo "Cleaning /tmp, /var/lock, /var/run"
+       initmsg msg "Cleaning /tmp, /var/lock, /var/run"
hunk ./etc/event.d/bootclean 47
+       initmsg ret $? "Removal of /tmp, /var/lock, /var/run"
hunk ./etc/event.d/hostname 15
-       echo "Setting hostname to '$hostname'"
+       initmsg msg "Setting hostname to '$hostname'"
hunk ./etc/event.d/hostname 17
+       initmsg ret $? "Update of hostname to '$hostname'"
hunk ./etc/event.d/hwclock 13
-               echo "Setting system time from the hardware clock"
+               initmsg msg "Setting system time from the hardware clock"
hunk ./etc/event.d/hwclock 19
+               initmsg ret $? "Update of system time based on the hardware 
clock"
hunk ./etc/event.d/hwclock 24
-       echo "Saving system time to the hardware clock"
+       initmsg msg "Saving system time to the hardware clock"
hunk ./etc/event.d/hwclock 30
+       initmsg ret $? "Update of the hardware clock based on the system time"
hunk ./etc/event.d/keymap 14
-                       echo ">> You haven't set a keymap in 
/etc/sysconfig/keymap"
+                       initmsg hint "You haven't set a keymap in 
/etc/sysconfig/keymap"
hunk ./etc/event.d/load-modules 16
-               echo "Loading modules..."
+               initmsg msg "Loading modules..."
hunk ./etc/event.d/load-modules 23
+               initmsg ret $? "Module loading"
hunk ./etc/event.d/mount 16
-               echo "Checking non-root filesystems"
+               initmsg msg "Checking non-root filesystems"
hunk ./etc/event.d/mount 18
+               initmsg ret $? "Check of non-root filesystems"
hunk ./etc/event.d/mount 23
-       echo "Mounting local filesystems"
+       initmsg msg "Mounting local filesystems"
hunk ./etc/event.d/mount 25
+       initmsg ret $? "Mount of local filesystems"
hunk ./etc/event.d/random 12
-       echo "Initializing /dev/urandom"
+       initmsg msg "Initializing /dev/urandom"
hunk ./etc/event.d/random 19
+       initmsg ret $? "Initialization of /dev/urandom"
hunk ./etc/event.d/shutdown 30
-       echo "Sending all processes the SIGTERM signal"
+       initmsg msg "Sending all processes the SIGTERM signal"
hunk ./etc/event.d/shutdown 32
+       initmsg ret $? "Sending all processes the SIGTERM signal"
hunk ./etc/event.d/shutdown 34
-       echo "Sending all processes the SIGKILL signal"
+       initmsg msg "Sending all processes the SIGKILL signal"
hunk ./etc/event.d/shutdown 37
+       initmsg ret $? "Sending all processes the SIGKILL signal"
hunk ./etc/event.d/shutdown 39
-       echo "Unmounting local filesystems..."
+       initmsg msg "Unmounting local filesystems..."
hunk ./etc/event.d/shutdown 41
+       initmsg ret $? "Unmount of the local filesystems"
hunk ./etc/event.d/shutdown 43
-       echo "Remounting root filesystem read-only"
+       initmsg msg "Remounting root filesystem read-only"
hunk ./etc/event.d/shutdown 45
+       initmsg ret $? "Remount of the root filesystem read-only"
hunk ./etc/event.d/udevtrigger 11
-       echo "Triggering kernel events..."
+       initmsg msg "Triggering kernel events..."
hunk ./etc/event.d/udevtrigger 19
+       initmsg ret $? "Kernel event triggering"
hunk ./etc/event.d/udevtrigger 23
-       echo "Processing kernel events..."
+       initmsg msg "Processing kernel events..."
hunk ./etc/event.d/udevtrigger 25
+       initmsg ret $? "Kernel event processing"
hunk ./etc/event.d/udevtrigger 27
-       mount -n -t usbfs -o devgid=23,devmode=664 usbfs /proc/bus/usb || true
+       mountpoint -q /proc/bus/usb || mount -n -t usbfs -o 
devgid=23,devmode=664 usbfs /proc/bus/usb
addfile ./etc/sysconfig/Makefile
hunk ./etc/sysconfig/Makefile 1
+all:
+
+install: 
+       install -d $(DESTDIR)/etc/sysconfig
+       install -m0644 initmsg $(DESTDIR)/etc/sysconfig/initmsg
addfile ./etc/sysconfig/initmsg
hunk ./etc/sysconfig/initmsg 1
+#!/bin/sh
+
+# /etc/sysconfig/initmsg
+
+# You can edit here the format of the output of the boot sequence
+
+# Colours
+NORMAL="\\033[0;39m"
+GREEN="\\033[1;32m"
+YELLOW="\\033[1;33m"
+RED="\\033[1;31m"
+CYAN="\\033[1;36m"
+BLUE="\\033[1;34m"
+WHITE="\\033[1;37m"
+BOLD="\\033[1;1m"
+
+# Measurements for positioning result messages
+COL=$((${COLUMNS} - 10))
+
+# Set cursor position
+SET_COL="\\033[${COL}G"
+
+# Message prefixes and suffixes
+msg_prefix="${BLUE}>>${NORMAL} ${BOLD}"
+msg_suffix="${NORMAL}"
+
+hint_prefix="${YELLOW}>>${NORMAL} ${BOLD}"
+hint_suffix="${NORMAL}"
+
+ok_prefix="${GREEN} *${NORMAL} ${BOLD}"
+ok_suffix="${SET_COL}${GREEN}done${NORMAL}"
+failed_prefix="${RED}!!${NORMAL} ${BOLD}"
+failed_suffix="${SET_COL}${RED}failed${NORMAL}"
hunk ./src/Makefile 4
-all: getmntent start-display-manager set-display-manager
+all: getmntent start-display-manager set-display-manager initmsg
hunk ./src/Makefile 17
+       install -d $(DESTDIR)/bin
+       install -m0755 initmsg $(DESTDIR)/bin/initmsg
}
_______________________________________________
Frugalware-darcs mailing list
Frugalware-darcs@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-darcs

Reply via email to