Skip to content

Commit 035b4f7

Browse files
committed
rename_device: Remove rename_device functionality
Functionality of rename_device will be moved to a better suited place. It will be also reworked using rust. New, reworked rename_device source code will be placed inside systemd/udev.
1 parent b748244 commit 035b4f7

File tree

4 files changed

+1
-369
lines changed

4 files changed

+1
-369
lines changed

initscripts.spec

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,6 @@ fi
321321

322322
%{_prefix}/lib/systemd/system/import-state.service
323323
%{_prefix}/lib/systemd/system/loadmodules.service
324-
%{_prefix}/lib/udev/rename_device
325-
326-
%{_udevrulesdir}/*
327324

328325
%{_mandir}/man1/*
329326

src/Makefile

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,17 @@ CC = gcc
2121
CFLAGS += $(RPM_OPT_FLAGS) -Wall -D_GNU_SOURCE -fPIE
2222
LDFLAGS += $(RPM_LD_FLAGS) -pie -z relro -z now
2323

24-
PROGS = consoletype genhostid rename_device usernetctl usleep
24+
PROGS = consoletype genhostid usernetctl usleep
2525

2626
all: $(PROGS)
2727

2828
install: all
2929
install -m 0755 -d $(DESTDIR)$(bindir)
3030
install -m 0755 -d $(DESTDIR)$(sbindir)
31-
install -m 0755 -d $(DESTDIR)$(libdir)/udev
3231
install -m 0755 build/usleep $(DESTDIR)$(bindir)
3332
install -m 0755 build/consoletype $(DESTDIR)$(sbindir)
3433
install -m 0755 build/genhostid $(DESTDIR)$(sbindir)
3534
install -m 0755 build/usernetctl $(DESTDIR)$(sbindir)
36-
install -m 0755 build/rename_device $(DESTDIR)$(libdir)/udev
3735

3836
clean:
3937
rm -f build/*
@@ -52,13 +50,6 @@ build/genhostid.o: genhostid.c
5250
$(CC) $(CFLAGS) -c -o $@ $^
5351

5452

55-
rename_device: build/rename_device.o
56-
$(CC) $(LDFLAGS) -o build/$@ $^ `pkg-config glib-2.0 --libs`
57-
58-
build/rename_device.o: rename_device.c
59-
$(CC) $(CFLAGS) -c -o $@ $^ `pkg-config glib-2.0 --cflags`
60-
61-
6253
usernetctl: build/usernetctl.o
6354
$(CC) $(LDFLAGS) -o build/$@ $^
6455

0 commit comments

Comments
 (0)