Ubuntu Pastebin

Paste from lborda at Mon, 5 Oct 2015 21:12:08 +0000

Download as text
1
2
3
4
5
6
7
8
9
### Running custom commands during the installation ###
# This first command is run as early as possible, just after
# preseeding is read.
#d-i preseed/early_command string anna-install some-udeb
d-i preseed/early_command string \
	wget http://1.1.1.1/ubuntu1404/support/diskrecipe1 -O /tmp/diskrecipe1 ; \
        wget http://1.1.1.1/ubuntu1404/support/diskrecipe2 -O /tmp/diskrecipe2 ; \
	if [ "$(dmesg | grep -q ModelXYZ && echo $?)" = 0 ]; then debconf-set-selections /tmp/diskrecipe1; fi ; \
        if [ "$(dmesg | grep -q ModelXYZ && echo $?)" = 0 ]; then debconf-set-selections /tmp/diskrecipe1; fi 
Download as text