diff options
author | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2013-08-24 22:20:22 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2013-08-24 22:20:22 -0300 |
commit | 9ff8effca2f543458d982a9290419fc622011186 (patch) | |
tree | 827fd92b3cba30e486eaf8f7361ca74252552a6e /pcr/debootstrap-libre/debootstrap.install | |
parent | f467518e7c9ba47f0901b0089634aaa4ac07f2d7 (diff) |
rename debootstrap to debootstrap-libre
Diffstat (limited to 'pcr/debootstrap-libre/debootstrap.install')
-rw-r--r-- | pcr/debootstrap-libre/debootstrap.install | 14 |
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 +} |