Is it possible to boot without using the bootcode "noicons" and unset the variable "ICONS" with a command issued from /opt/bootlocal.sh?
No, because bootlocal.sh is a child script. Any changes to environment variables within it do not affect the init process.
If you do not want wbar to start, there is a hack (I verified it works on 2.8.1):
1) Open a root terminal.
2)
rm -f /usr/share/wbar/dot.wbar3)
ln -s foo /usr/share/wbar/dot.wbar4) Add
usr/share/wbar/dot.wbar to
/opt/.filetool.lst and make a backup
The key to this is that dot.wbar is now a symbolic link to a file which does not exist. This link in the backup will be restored on bootup before the following code is executed:
if [ -n "$NOICONS" ] || [ ! -f /usr/share/wbar/dot.wbar ]; then
unset ICONS
fi
This will unset ICONS in the appropriate place and prevent wbar from starting.
Alternatively, you can create a "no-wbar" extension to remove the dot.wbar file:
1) Load squashfs-tools extension using Appbrowser.
2) Open a root terminal.
3)
mkdir -p /tmp/no-wbar/usr/local/tce.installed/4)
echo rm -f /usr/share/wbar/dot.wbar > /tmp/no-wbar/usr/local/tce.installed/no-wbar5)
chmod +x /tmp/no-wbar/usr/local/tce.installed/no-wbar5)
mksquashfs /tmp/no-wbar /tmp/no-wbar.tcz -b 4096Then, for TC 2.7 and earlier:
6) Copy no-wbar.tcz to your tce directory
Or for 2.8 and later:
6) Copy no-wbar.tcz to your tce/optional directory
7) Add "no-wbar.tcz" to tce/onboot.lst
There may be users like you which for one reason or another cannot use the noicons boot parameter, so I will submit this extension to Jason for consideration. It's a bit of a hack, though, so no guarantees on acceptance.
![Smiley :)](https://forum.tinycorelinux.net/Smileys/default/smiley.gif)
However it is better not to start WBAR than start and kill.
True, but if you wish to try this, here is what you can add to bootlocal.sh:
while ! pidof wbar &>/dev/null; do sleep 1; done; killall wbar