Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: aus9 on January 26, 2013, 12:18:52 AM
-
Hi
I have built and still testing spacefm which is a fork of a fork of pcmanfm
depends includes dbus and udisks......main reason................automounting of remove-able media eg usb stick
With my real setup I have dbus already running but have yet to create a tce.installed script for spacefm to take care of dbus
My Question
########
Would it be acceptable behaviour to just have the tce.installed script do this?
#!/bin/sh
/usr/local/etc/init.d/dbus restart
as I lack the skills to grep and awk (or what ever) to check status of dbus
2) dbus has an option of reload.......what does that do?
Thanks for reading
-
If you use a l/unix system there is no excuse for not learning how to grep or awk.
dbus is rocket science compared to that.
You must read "The AWK programming language". It's a marvel of a technical book.
https://www.amazon.co.uk/The-AWK-Programming-Language-Alfred/dp/020107981X
-
as I lack the skills to grep and awk (or what ever) to check status of dbus
check for the presence of /var/run/dbus/pid: if [ ! -f /var/run/dbus/pid ]; then
/usr/local/etc/init.d/dbus restart
fi
2) dbus has an option of reload.......what does that do?
See:
http://forum.tinycorelinux.net/index.php/topic,13740.msg76710.html#msg76710
-
hiro
I guess you have never heard of the excuse " aus9 is an idiot"
seriously tho....I know I am idiot because sometimes I do not communicate as well as I thiink I am
---a valued member can testify to that but I am too ashamed to reveal more.
:-[
Juanito
Thanks for taking the time to help me
:)
-
I have indeed heard this excuse, and I don't accept it :P
The book is really easy to read, it's basically idiot-proof.
I try to be an idiot as often as possible, because I've seen if you're trying to be too clever in computing you end up nowhere.
-
notes to myself
As I will have udisks and dbus as dependencies, I can not assume the user knows to configure dbus, so I will be transparent, and warn the user in my info file
heck, keep it simple and let the user add the dbus startup by advice in info file
hiding only the update to icon cache in tce.installed