This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo rm -Rf ./files/firstboot/41-create-resolv-symlink.sh | |
sudo mv ./files/firstboot/41-create-resolv-symlink.sh ./files/firstboot/41-create-resolv-symlink.sh.original | |
echo "systemctl enable systemd-resolved.service" | sudo tee -a ./files/firstboot/41-create-resolv-symlink.sh | |
echo "systemctl restart systemd-resolved.service" | sudo tee -a ./files/firstboot/41-create-resolv-symlink.sh | |
cat ./files/firstboot/41-create-resolv-symlink.sh.original | sudo tee -a ./files/firstboot/41-create-resolv-symlink.sh | |
sudo rm -Rf ./files/firstboot/41-create-resolv-symlink.sh.original | |
cat ./files/firstboot/41-create-resolv-symlink.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/expect -f | |
set timeout -1 | |
set TEMPLATE [lindex \$argv 0] | |
spawn /bin/bash -c "CONFIG_TEMPLATE=\$TEMPLATE ./rpi23-gen-image.sh" | |
expect { | |
"*(NEW)*" { send "\r"; exp_continue } | |
eof |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Load utility functions | |
. ./functions.sh | |
cc="${CROSS_COMPILE}gcc" | |
git clone https://github.com/Infineon/eltt2.git | |
cd eltt2 | |
make -j$(nproc) ARCH="${KERNEL_ARCH}" CROSS_COMPILE="${CROSS_COMPILE}" CC="${cc}" | |
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Load utility functions | |
. ./functions.sh | |
<YOUR CODE> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
# Declaring folders and files | |
DIR_ETC=${R}/etc/ | |
DIR_BOOT=${R}/ | |
DIR_USR_LOCAL=${R}/usr/local/ | |
DIR_USR_LOCAL_BIN=${DIR_USR_LOCAL}/bin/ | |
... | |
FILE_RC_LOCAL=${DIR_ETC}/rc.local | |
FILE_CONFIG_TXT=${DIR_BOOT}/config.txt | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Load utility functions | |
. ./functions.sh | |
install_exec files/scripts/my_script.sh ${R}/tmp | |
chroot_exec /tmp/my_script.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Load utility functions | |
. ./functions.sh | |
chroot_exec /bin/bash -x << 'EOF_CHROOT' | |
... | |
<ALL THE BUILD PROCESS> | |
... | |
EOF_CHROOT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
user_id=$(id -u) | |
if [ ! "${user_id}" -eq 0 -a -z "$AGENT_ALLOW_RUNASROOT" ]; then | |
echo "Must run with sudo" | |
exit 1 | |
fi | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
# Defines the colors | |
GREEN='\033[0;32m' | |
PURPLE='\033[0;35m' | |
RED='\033[0;31m' | |
RESET_COLOR='\033[0m' | |
YELLOW='\033[0;33m' | |
WHITE='\033[0;37m' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
# | |
# display_help | |
# | |
display_help() { | |
echo "Usage: ${0}.sh --param1 <This is the first parameter>" | |
echo " --param2 <This is the second parameter>" | |
echo " --flag1" | |
echo " [--flag2|flag3 (Default)]" |
OlderNewer