minimal has quit [Quit: Leaving]
syphyr has quit [Quit: Leaving]
riot_dd_ has quit [Ping timeout: 240 seconds]
riot_dd has joined #libreelec
pusher has joined #libreelec
keypusher has quit [Ping timeout: 248 seconds]
pusher is now known as keypusher
tsal has quit [Ping timeout: 252 seconds]
tsal has joined #libreelec
wacko has quit [Quit: Bye]
wacko has joined #libreelec
wacko has quit [Changing host]
wacko has joined #libreelec
lxdr533 has quit [Remote host closed the connection]
lxdr533 has joined #libreelec
TomTom has joined #libreelec
lich000king has joined #libreelec
chewitt has joined #libreelec
<
lich000king>
Hi all
<
lich000king>
Is there a way to include some extra files specified during build into the image?
<
lich000king>
E.g. /storage/.config/autostart.sh
<
lebot>
<chewitt> it’s not impossible but challenging (needs some jumping through hoops) to create things on /storage
<
lebot>
<chewitt> but if you want something to run at startup, it’s easily (and better) done putting commands in a systemd service
<
lebot>
<chewitt> and it’s much easier to append the systemd service to some package that’s already being built
<
lebot>
<chewitt> so, what are you really trying to do?
<
lich000king>
at the moment, I want to load a module, so I put
<
lich000king>
modprobe snd-aloop
<
lich000king>
to autostart.sh
<
lich000king>
is that not the right way?
<
lich000king>
I was also thinking to include some config files, but this could be handled with packages too.
<
lich000king>
how to do it with systemd?
<
chewitt>
create packages/audio/alsa-lib/system.d/aloop.service
<
chewitt>
add a postinstall() section to packages/audio/alsa-lib/package.mk
<
chewitt>
the section needs to contain "enable_service aloop.service"
<
chewitt>
create a simple systemd service, the wireguard example is something you can crib from
<
chewitt>
schedule after sound.target and before kodi.target .. probably
<
chewitt>
although .. better suggestion:
<
chewitt>
echo "snd-aloop" > packages/sysutils/systemd/config/modules-load.d/snd-aloop.conf
<
chewitt>
the confs in modules-load.d should be atuo-loaded by the kernel on boot
<
chewitt>
test that first, it's cleaner than the systemd route (although both should work)
lich000king_2 has joined #libreelec
lich000king_2 has quit [Client Quit]
lich000king_2 has joined #libreelec
lich000king_2 has left #libreelec [#libreelec]
tsegers has quit [Remote host closed the connection]
lich000king has quit [Quit: Client closed]
Disconsented has quit [Ping timeout: 248 seconds]
Disconsented has joined #libreelec
tsegers has joined #libreelec
Fenster` has quit [Read error: Connection reset by peer]
snoopy has quit [Changing host]
snoopy has joined #libreelec
Fenster` has joined #libreelec
ad1m has joined #libreelec
kingdomofheaven has quit [Ping timeout: 260 seconds]
kingdomofheaven has joined #libreelec
Fenster`` has joined #libreelec
Fenster` has quit [Ping timeout: 240 seconds]
minimal has joined #libreelec
travisghansen has joined #libreelec
lich000king has joined #libreelec
<
lich000king>
Thanks!
<
lich000king>
modules-load.d/snd-aloop.conf works. :-)
<
lich000king>
And then I can use the systemd approach to run brutefir (which I am compiling) at startup.
<
lich000king>
I'll try this out.
lich000king has quit [Quit: Client closed]
chewitt has quit [Quit: Zzz..]
lich000king has joined #libreelec
electro575 has joined #libreelec
electro575 has quit [Quit: Quitte]
electro575 has joined #libreelec
lich000king has left #libreelec [#libreelec]
syphyr has joined #libreelec
tsal_ has joined #libreelec
tsal has quit [Ping timeout: 260 seconds]
Fenster`` has quit [Ping timeout: 272 seconds]
Fenster has joined #libreelec
electro575 has quit [Remote host closed the connection]
TomTom has quit [Quit: Connection closed for inactivity]