Skip to content

Instantly share code, notes, and snippets.

@jfeilbach
Last active March 22, 2020 19:20
Show Gist options
  • Save jfeilbach/d1ca18c55246bc5eee99e29c64e2312c to your computer and use it in GitHub Desktop.
Save jfeilbach/d1ca18c55246bc5eee99e29c64e2312c to your computer and use it in GitHub Desktop.
/boot/extra/go
#!/bin/bash
# Start the Management Utility
/usr/local/sbin/emhttp &
# Copy ssh keys to root hime directory.
mkdir -p /root/.ssh
cp /boot/extra/authorized_keys /root/.ssh/authorized_keys
# Change the permissions and ownership of the key file
chmod 600 /root/.ssh/authorized_keys
chown root:root /root/.ssh/authorized_keys
chmod 600 /root/.ssh/
# Copy bash settings to new shmfs home directory
cp /boot/extra/bash_profile /root/.bash_profile
chmod 755 /root/.bash_profile
echo alias ll=\"ls -l\" >> /root/.bash_profile
# echo export PS1="\h: \w \\$ \[\$(tput sgr0)\]" >> /root/.bash_profile
#echo export TERM=linux >> /root/.bash_profile
# Copy HTOP settings to new shmfs home directory
mkdir -p /root/.config/htop/
cp /boot/extra/htoprc /root/.config/htop/htoprc
chmod 755 /root/.config/htop/htoprc
# Copy cron job
cp /boot/extra/clean_mac_files.cron /etc/cron.daily/clean_mac_files.cron
chmod 755 /etc/cron.daily/clean_mac_files.cron
# Copy image files
cp /boot/extra/banner.png /usr/local/emhttp/plugins/dynamix/images/banner.png
chmod 666 /usr/local/emhttp/plugins/dynamix/images/banner.png
chown root:root /usr/local/emhttp/plugins/dynamix/images/banner.png
cp /boot/extra/limetech-logo-black.png /usr/local/emhttp/plugins/dynamix/images/limetech-logo-white.png
chown root:root /usr/local/emhttp/plugins/dynamix/images/limetech-logo-white.png
cp /boot/extra/case-model.png /boot/config/plugins/dynamix/case-model.png
chmod 777 /boot/config/plugins/dynamix/case-model.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment