# firstboot-config
#
# This service only runs on the 1st boot. It's useful for
# configurations that only need to be performed once.
# This includes querying hardware to determine what
# hardware-specific modules need to be loaded.

start on runlevel 2

script

# Only set gpm's can_hibernate gconf key to true if we have a swap
# partition
if cat /etc/fstab | grep -q -w "swap";
then
	echo "/apps/gnome-power-manager/general/can_hibernate true" > /usr/share/gconf/defaults/31-netbook-config-natick-enable-s4
	update-gconf-defaults
fi

initctl emit firstboot-config-done -n

end script
