summaryrefslogtreecommitdiff
path: root/pcr/debootstrap-libre/debootstrap.install
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-08-24 22:20:22 -0300
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-08-24 22:20:22 -0300
commit9ff8effca2f543458d982a9290419fc622011186 (patch)
tree827fd92b3cba30e486eaf8f7361ca74252552a6e /pcr/debootstrap-libre/debootstrap.install
parentf467518e7c9ba47f0901b0089634aaa4ac07f2d7 (diff)
downloadabslibre-9ff8effca2f543458d982a9290419fc622011186.tar.gz
abslibre-9ff8effca2f543458d982a9290419fc622011186.tar.bz2
abslibre-9ff8effca2f543458d982a9290419fc622011186.zip
rename debootstrap to debootstrap-libre
Diffstat (limited to 'pcr/debootstrap-libre/debootstrap.install')
-rw-r--r--pcr/debootstrap-libre/debootstrap.install14
1 files changed, 14 insertions, 0 deletions
diff --git a/pcr/debootstrap-libre/debootstrap.install b/pcr/debootstrap-libre/debootstrap.install
new file mode 100644
index 000000000..3da2f1d22
--- /dev/null
+++ b/pcr/debootstrap-libre/debootstrap.install
@@ -0,0 +1,14 @@
+post_install() {
+ if [ "$(uname -m)" = "x86_64" ]; then
+ darch="amd64"
+ elif [ "$(uname -m)" = "i686" ]; then
+ darch="i386"
+ else
+ darch="mips64el"
+ fi
+ echo "$darch" > /usr/share/debootstrap/arch
+}
+
+pre_remove() {
+ rm -f /usr/share/debootstrap/arch
+}