summaryrefslogtreecommitdiffstats
path: root/smgl
diff options
context:
space:
mode:
authorTreeve Jelbert2018-12-15 14:09:34 +0100
committerTreeve Jelbert2018-12-16 08:53:35 +0100
commita6da5225feadf445ef64cd9730e088f04e16c834 (patch)
tree2605b53f5389b93a24b4def4d0eac05ac187742e /smgl
parentbfa80ded217d150ab457bd954cd4f59c4ea9bef1 (diff)
init.d: => 2.2.17
Diffstat (limited to 'smgl')
-rwxr-xr-xsmgl/init.d/DETAILS2
-rw-r--r--smgl/init.d/HISTORY4
-rwxr-xr-xsmgl/init.d/init.d/devices4
3 files changed, 9 insertions, 1 deletions
diff --git a/smgl/init.d/DETAILS b/smgl/init.d/DETAILS
index e094cc59f6..7743084444 100755
--- a/smgl/init.d/DETAILS
+++ b/smgl/init.d/DETAILS
@@ -1,5 +1,5 @@
SPELL=init.d
- VERSION=2.2.16
+ VERSION=2.2.17
LICENSE[0]=GPL
GATHER_DOCS=off
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION
diff --git a/smgl/init.d/HISTORY b/smgl/init.d/HISTORY
index a90400b043..4713171144 100644
--- a/smgl/init.d/HISTORY
+++ b/smgl/init.d/HISTORY
@@ -1,3 +1,7 @@
+2018-12-15 Treeve Jelbert <treeve@sourcemage.org>
+ * init.d/devices: fix for modern eudev
+ * DETAILS: version 2.2.17
+
2017-09-27 Thomas Orgis <sobukus@sourcemage.org>
* init.d/mountroot.sh: Use mdadm --run to also start degraded
arrays on boot.
diff --git a/smgl/init.d/init.d/devices b/smgl/init.d/init.d/devices
index aab20a5288..824eea720b 100755
--- a/smgl/init.d/init.d/devices
+++ b/smgl/init.d/init.d/devices
@@ -28,12 +28,16 @@ start_devfs()
udev_mknodes()
{
+# eudev creates these; errors if they are already present
+UD=`/bin/udevadm --version`
+if [[ $UD < '220' ]];then
if [ ! -d $udev_root/fd ]; then
ln -fs /proc/self/fd $udev_root/fd
fi
ln -s /dev/fd/0 $udev_root/stdin
ln -s /dev/fd/1 $udev_root/stdout
ln -s /dev/fd/2 $udev_root/stderr
+fi
mkdir $udev_root/shm
mkdir $udev_root/pts
}