return 0
fi
+ # Don't prompt to eject the SD card on Babbage board, where we reuse it
+ # as a quasi-boot-floppy. Technically this uses a bit of ubiquity
+ # (archdetect), but since this is mostly only relevant for
+ # installations, who cares ...
+ if type archdetect >/dev/null 2>&1
+ then
+ subarch="$(archdetect)"
+
+ case $subarch in
+ arm*/imx51)
+ return 0
+ ;;
+ esac
+ fi
+
prompt=1
if grep -qs noprompt /proc/cmdline
then
+casper (1.201) karmic; urgency=low
+
+ [ Colin Watson ]
+ * Don't prompt to eject the SD card on Babbage boards, since for now it's
+ reused as a quasi-boot-floppy (LP: #364273).
+
+ [ James Westby ]
+ * scripts/casper-bottom/44pk_allow_ubuntu: update to work for polkit-1
+ as well. Allow the live cd user to perform any action when at the
+ active console. (LP: #447141)
+
+ -- Colin Watson <cjwatson@ubuntu.com> Fri, 09 Oct 2009 16:06:53 +0100
+
casper (1.200) karmic; urgency=low
* scripts/casper-bottom/20xconfig:
</config>
EOF
+mkdir -p /root/var/lib/polkit-1/localauthority/10-vendor.d
+cat << EOF > /root/var/lib/polkit-1/localauthority/10-vendor.d/10-live-cd.pkla
+# Policy to allow the livecd user to bypass policykit
+[Live CD user permissions]
+Identity=unix-user:$USERNAME
+Action=*
+ResultAny=no
+ResultInactive=no
+ResultActive=yes
+EOF
+
log_end_msg