Skip to content

Commit

Permalink
FIXED: proper path for services and commands
Browse files Browse the repository at this point in the history
  • Loading branch information
itsManjeet committed Aug 22, 2024
1 parent 8b219c8 commit b0dd033
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
8 changes: 3 additions & 5 deletions external.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ RLXOS_LICENSE_FILES = LICENSE
RLXOS_DEPENDENCIES = host-go
RLXOS_GOMOD = rlxos

RLXOS_COMMANDS := cmd poweroff
RLXOS_COMMANDS := capsule poweroff
RLXOS_COMMANDS_TARGETS := $(addprefix cmd/,$(RLXOS_COMMANDS))

RLXOS_SERVICES := power
Expand All @@ -14,16 +14,14 @@ RLXOS_BUILD_TARGETS = \
$(RLXOS_COMMANDS_TARGETS) \
$(RLXOS_SERVICES_TARGETS)

RLXOS_INSTALL_BINS = $(notdir $(RLXOS_BUILD_TARGETS))

rlxos: host-go
$(foreach d,$(RLXOS_BUILD_TARGETS),\
cd $(BR2_EXTERNAL_RLXOS_PATH); \
$(HOST_GO_HOST_ENV) \
$(RLXOS_GO_ENV) \
$(GO_BIN) build -v $(RLXOS_BUILD_OPTS) \
-mod=vendor -o $(TARGET_DIR)/$(shell dirname $(d))/$(or $(RLXOS_BIN_NAME),$(notdir $(d))) \
$(RLXOS_GOMOD)/$(d))
-mod=vendor -o $(TARGET_DIR)/$(d) \
$(RLXOS_GOMOD)/$(d);)

PACKAGES_ALL += rlxos

Expand Down
7 changes: 7 additions & 0 deletions overlay/etc/init.d/power
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

PROG='/services/power'
ARGS=''
DESCRIPTION="Power Manager service"

. /lib/lsb/init.sh
2 changes: 1 addition & 1 deletion overlay/etc/profile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export PATH="/bin:/sbin"
export PATH="/cmd:/bin:/sbin"

if [ "$PS1" ]; then
if [ "`id -u`" -eq 0 ]; then
Expand Down
2 changes: 1 addition & 1 deletion overlay/etc/rc.conf
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SERVICES="klogd syslogd watchdog telnet seatd dbus alsa"
SERVICES="klogd syslogd watchdog telnet seatd dbus alsa power"

0 comments on commit b0dd033

Please sign in to comment.