Hi manit123
Nothing wrong in this.
Obviously, which is why it is working so well.
![Roll Eyes ::)](https://forum.tinycorelinux.net/Smileys/default/rolleyes.gif)
You appear to be trying to bypass the mechanisms built into Tinycore for loading of extensions when booting. To what
end, I don't know, but I'll offer a few comments/observations.
alias df='df -h'
alias du='du -sh'
#!/usr/local/bin/bash
It looks like you are trying to add a shebang to set the interpreter to bash. To the best of my knowledge, that has to be the
first line in a script. Not to mention the fact that you don't load bash until you call load-extras.sh about a dozen lines
later.
Is any component missing ?
If I kill x server & restart it then I get blue desktop with tiny core engraved on it , as desired.
That would suggest you have all the required extensions.
root=$( blkid | grep -i sd | grep -i 93a0 | sed 's/\([/a-z0-9]*\).*/\1/' | sed 's/dev/mnt/')
# here 93a0 is a part of UUID of intended partition
if [ -z $root ];
then
echo tcz not found
echo you are on your own
else
echo you are booting from \"$root\"
if [ ! -f /home/tc/already-run.txt ];
then
echo we will load tcz from $root/cde/optional
cd "$root/cde/optional"
./load-extras.sh
touch /home/tc/already-run.txt
fi
fi
You might want to put this function into /opt/bootsynch.sh instead since it only runs once anyway, or at least let onboot.lst
handle the loading of Xvesa.tcz, Xlibs.tcz, Xprogs.tcz, and flwm_topside.tcz.
Your cd commands might interfere with startx being executed from ~.
The last command in his .ashrc file is cd which should return him to his home directory.
[EDIT] Added bootsync.sh only runs once.