<commit_before>#Ensures user is root

USER=`whoami`
if [ $USER = "root" ]
        then
        echo "Running as ROOT"
else
        echo "***********YOU ARE NOT ROOT************" 
        exit 0
fi

#Sets up Autoboot


echo "You are running on the pi, we will set up Auto Launch"
cd ..
sudo mkdir /home/Music
cp assets/*.ttf /usr/share/fonts
cp SongLibrary/*.mp3 /home/Music

FILECONTENTS=`grep -Eo "onboardmediacontrol" /etc/rc.local`
echo "filecontents = $FILECONTENTS"
if [ -z $FILECONTENTS ]
then
        echo "Setting up AutoLaunch"
        sed -i '$ d' /etc/rc.local
        sudo sh -c 'CAMERAPATH=`pwd`; echo "@$CAMERAPATH/BackupCamera" >> /etc/rc.local'
        echo "exit 0" >> /etc/rc.local
else
        echo "Autolaunch already set up!"
fi

Sets up Fastboot
apt-get install systemd
FASTBOOT=`cat /boot/cmdline.txt`
SYSTEMSET=`echo $FASTBOOT | grep -o "systemd"`
if [ -z $SYSTEMSET ]
then
sudo sh -c 'FASTBOOT=`cat /boot/cmdline.txt`; echo -n "$FASTBOOT init=/bin/systemd" > /boot/cmdline.txt'
fi <commit_msg>Fixed autoboot installer<commit_after>#Ensures user is root

USER=`whoami`
if [ $USER = "root" ]
        then
        echo "Running as ROOT"
else
        echo "***********YOU ARE NOT ROOT************" 
        exit 0
fi

#Sets up Autoboot


echo "You are running on the pi, we will set up Auto Launch"
cd ..
sudo mkdir /home/Music
cp assets/*.ttf /usr/share/fonts
cp SongLibrary/*.mp3 /home/Music

FILECONTENTS=`grep -Eo "onboardmediacontrol" /etc/rc.local`
echo "filecontents = $FILECONTENTS"
if [ -z $FILECONTENTS ]
then
        echo "Setting up AutoLaunch"
        sed -i '$ d' /etc/rc.local
        sudo sh -c 'CAMERAPATH=`pwd`; echo "$CAMERAPATH/BackupCamera" >> /etc/rc.local'
        echo "exit 0" >> /etc/rc.local
else
        echo "Autolaunch already set up!"
fi

Sets up Fastboot
apt-get install systemd
FASTBOOT=`cat /boot/cmdline.txt`
SYSTEMSET=`echo $FASTBOOT | grep -o "systemd"`
if [ -z $SYSTEMSET ]
then
sudo sh -c 'FASTBOOT=`cat /boot/cmdline.txt`; echo -n "$FASTBOOT init=/bin/systemd" > /boot/cmdline.txt'
fi 
{'fraction_non_alphanumeric': 0.14809384164222875, 'fraction_numerical': 0.002932551319648094, 'mean_word_length': 3.037475345167653, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '945387', 'n_tokens_mistral': 784, 'n_tokens_neox': 740, 'n_words': 228}