##// END OF EJS Templates
a
Unknown -
r412:af220c4d6a78
parent child
Show More
@@ -31,22 +31,22 cleanup (){
31 31
32 32 chroot_exec() {
33 33 # Exec command in chroot
34 LANG=C LC_ALL=C DEBIAN_FRONTEND=noninteractive chroot ${R} $*
34 LANG=C LC_ALL=C DEBIAN_FRONTEND=noninteractive chroot "${R}" "$*"
35 35 }
36 36
37 37 as_nobody() {
38 38 # Exec command as user nobody
39 sudo -E -u nobody LANG=C LC_ALL=C $*
39 sudo -E -u nobody LANG=C LC_ALL=C "$*"
40 40 }
41 41
42 42 install_readonly() {
43 43 # Install file with user read-only permissions
44 install -o root -g root -m 644 $*
44 install -o root -g root -m 644 "$*"
45 45 }
46 46
47 47 install_exec() {
48 48 # Install file with root exec permissions
49 install -o root -g root -m 744 $*
49 install -o root -g root -m 744 "$*"
50 50 }
51 51
52 52 use_template () {
@@ -65,14 +65,14 chroot_install_cc() {
65 65 if [ -z "${COMPILER_PACKAGES}" ] ; then
66 66 COMPILER_PACKAGES=$(chroot_exec apt-get -s install g++ make bc | grep "^Inst " | awk -v ORS=" " '{ print $2 }')
67 67 # Install COMPILER_PACKAGES in chroot
68 chroot_exec apt-get -q -y --allow-unauthenticated --no-install-recommends install ${COMPILER_PACKAGES}
68 chroot_exec apt-get -q -y --allow-unauthenticated --no-install-recommends install "${COMPILER_PACKAGES}"
69 69 fi
70 70 }
71 71
72 72 chroot_remove_cc() {
73 73 # Remove c/c++ build environment from the chroot
74 if [ ! -z "${COMPILER_PACKAGES}" ] ; then
75 chroot_exec apt-get -qq -y --auto-remove purge ${COMPILER_PACKAGES}
74 if [ -n "${COMPILER_PACKAGES}" ] ; then
75 chroot_exec apt-get -qq -y --auto-remove purge "${COMPILER_PACKAGES}"
76 76 COMPILER_PACKAGES=""
77 77 fi
78 78 }
@@ -91,8 +91,7 set_kernel_config() {
91 91
92 92 unset_kernel_config() {
93 93 # unsets flag with the value of $1, config must exist at "./.config"
94 local TGT="CONFIG_${1#CONFIG_}"
94 TGT="CONFIG_${1#CONFIG_}"
95 95 sed -i "s/^${TGT}=.*/# ${TGT} is not set/" .config
96 96 }
97 #
98
97 # No newline at end of file
General Comments 0
Vous devez vous connecter pour laisser un commentaire. Se connecter maintenant