mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
busybox: port userconfig script setup to systemd
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
85c9783459
commit
6c126347ad
@ -103,6 +103,10 @@ post_makeinstall_target() {
|
|||||||
rm -rf $INSTALL/bin/systemd-machine-id-setup
|
rm -rf $INSTALL/bin/systemd-machine-id-setup
|
||||||
cp $PKG_DIR/scripts/systemd-machine-id-setup $INSTALL/bin
|
cp $PKG_DIR/scripts/systemd-machine-id-setup $INSTALL/bin
|
||||||
|
|
||||||
|
# copy openelec helper scripts
|
||||||
|
mkdir -p $INSTALL/lib/systemd/
|
||||||
|
cp $PKG_DIR/scripts/openelec-userconfig $INSTALL/lib/systemd/
|
||||||
|
|
||||||
# provide 'halt', 'shutdown', 'reboot' & co.
|
# provide 'halt', 'shutdown', 'reboot' & co.
|
||||||
mkdir -p $INSTALL/sbin
|
mkdir -p $INSTALL/sbin
|
||||||
ln -sf /bin/systemctl $INSTALL/sbin/halt
|
ln -sf /bin/systemctl $INSTALL/sbin/halt
|
||||||
@ -155,4 +159,5 @@ post_install() {
|
|||||||
add_group utmp 22
|
add_group utmp 22
|
||||||
|
|
||||||
enable_service machine-id.service
|
enable_service machine-id.service
|
||||||
|
enable_service userconfig.service
|
||||||
}
|
}
|
||||||
|
5
packages/sysutils/busybox/init.d/04_userconfig → packages/sysutils/systemd/scripts/openelec-userconfig
Normal file → Executable file
5
packages/sysutils/busybox/init.d/04_userconfig → packages/sysutils/systemd/scripts/openelec-userconfig
Normal file → Executable file
@ -1,3 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
################################################################################
|
################################################################################
|
||||||
# This file is part of OpenELEC - http://www.openelec.tv
|
# This file is part of OpenELEC - http://www.openelec.tv
|
||||||
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
|
||||||
@ -17,11 +18,7 @@
|
|||||||
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
|
||||||
# http://www.gnu.org/copyleft/gpl.html
|
# http://www.gnu.org/copyleft/gpl.html
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
#
|
|
||||||
# copy userconfig and samples
|
# copy userconfig and samples
|
||||||
#
|
|
||||||
# runlevels: openelec, textmode
|
|
||||||
|
|
||||||
if [ -d /usr/config ]; then
|
if [ -d /usr/config ]; then
|
||||||
progress "copy userconfig and samples"
|
progress "copy userconfig and samples"
|
12
packages/sysutils/systemd/system.d/userconfig.service
Normal file
12
packages/sysutils/systemd/system.d/userconfig.service
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Setup User config dir
|
||||||
|
DefaultDependencies=no
|
||||||
|
After=local-fs.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/lib/systemd/openelec-userconfig
|
||||||
|
RemainAfterExit=yes
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=sysinit.target
|
Loading…
x
Reference in New Issue
Block a user