#!/bin/bash
#
+# fai kexec from upstream live cds, i.e. curl|bash
# You can copy this to a http server, then wget -O- url|sudo bash
-# or curl|bash, if curl is installed.
+# curl is sometimes not preinstalled on a live cd.
#
# This has been tested on trisquel belanos and ubuntu xenial.
#
set -ex
if grep -q ID=ubuntu /etc/os-release; then
+ # add universe, pxe-kexec is there
sed -ri '/^\s*deb/{/universe/!s/$/ universe/}' /etc/apt/sources.list
fi
if ! type -p pxe-kexec &>/dev/null; then