commit 9d7d7cccfc0e382313d106397e8bb25dfa041ca4
parent bdc5faa1bb4197a2c4a564a0ceebe0e084bbfc11
Author: St John Karp <contact@stjo.hn>
Date: Wed, 20 Jul 2022 03:58:06 -0400
nldev: Remove dependency on Busybox ash
The run_nldev script had a hashbang that specified Busybox ash.
The script won't run if Busybox isn't installed, so I've changed
it to a generic invocation.
Diffstat:
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/core/nldev/build b/core/nldev/build
@@ -1,13 +1,12 @@
#!/usr/bin/env sh
sed 's/mdev/smdev/' config.def.h > _
-mv _ config.def.h
+mv -f _ config.def.h
+
+sed 's|^#!/bin/busybox ash$|#!/usr/bin/env sh|' run_nldev > _
+mv -f _ run_nldev
+chmod +x run_nldev
make clean
make
make install
-
-#mkdir -p "$1/lib/mdev"
-#mkdir -p "$1/etc"
-#cp mdev/etc/mdev.conf "$1/etc"
-#cp mdev/lib/* "$1/lib/mdev"