Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 19aeeada authored by Robert Nelson's avatar Robert Nelson
Browse files

buster: if go is present install gobot


Signed-off-by: default avatarRobert Nelson <robertcnelson@gmail.com>
parent d3028a38
No related merge requests found
...@@ -152,7 +152,7 @@ setup_desktop () { ...@@ -152,7 +152,7 @@ setup_desktop () {
chown -R ${rfs_username}:${rfs_username} ${wfile} chown -R ${rfs_username}:${rfs_username} ${wfile}
} }
install_pip_pkgs () { install_git_repos () {
if [ -f /usr/bin/make ] ; then if [ -f /usr/bin/make ] ; then
echo "Installing pip packages" echo "Installing pip packages"
git_repo="https://github.com/adafruit/adafruit-beaglebone-io-python.git" git_repo="https://github.com/adafruit/adafruit-beaglebone-io-python.git"
...@@ -169,9 +169,7 @@ install_pip_pkgs () { ...@@ -169,9 +169,7 @@ install_pip_pkgs () {
fi fi
fi fi
fi fi
}
install_git_repos () {
if [ -d /usr/local/lib/node_modules/bonescript ] ; then if [ -d /usr/local/lib/node_modules/bonescript ] ; then
if [ -d /etc/apache2/ ] ; then if [ -d /etc/apache2/ ] ; then
#bone101 takes over port 80, so shove apache/etc to 8080: #bone101 takes over port 80, so shove apache/etc to 8080:
...@@ -295,6 +293,14 @@ install_git_repos () { ...@@ -295,6 +293,14 @@ install_git_repos () {
fi fi
} }
install_go_pkgs () {
if [ -f /usr/bin/go ] ; then
echo "go env: [`go env`]"
echo "go get -d -u gobot.io/x/gobot/..."
go get -d -u gobot.io/x/gobot/...
fi
}
other_source_links () { other_source_links () {
rcn_https="https://rcn-ee.com/repos/git/u-boot-patches" rcn_https="https://rcn-ee.com/repos/git/u-boot-patches"
...@@ -316,11 +322,11 @@ is_this_qemu ...@@ -316,11 +322,11 @@ is_this_qemu
setup_system setup_system
setup_desktop setup_desktop
install_pip_pkgs
if [ -f /usr/bin/git ] ; then if [ -f /usr/bin/git ] ; then
git config --global user.email "${rfs_username}@example.com" git config --global user.email "${rfs_username}@example.com"
git config --global user.name "${rfs_username}" git config --global user.name "${rfs_username}"
install_git_repos install_git_repos
install_go_pkgs
git config --global --unset-all user.email git config --global --unset-all user.email
git config --global --unset-all user.name git config --global --unset-all user.name
fi fi
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment