Browse Source

- sg3-utils: move init-script to archive-imagefiles

master
vanhofen 6 years ago
parent
commit
902e0cb929
  1. 0
      archive-imagefiles/scripts/sdX.init
  2. 1
      make/rootfs.mk
  3. 2
      make/system-tools.mk
  4. 16
      skel-root/coolstream/hd1/etc/init.d/sdX
  5. 16
      skel-root/coolstream/hd2/etc/init.d/sdX

0
skel-root/armbox/hd51/etc/init.d/sdX → archive-imagefiles/scripts/sdX.init

1
make/rootfs.mk

@ -115,7 +115,6 @@ endif
ln -sf fstab K99fstab && \
ln -sf fstab S01fstab && \
ln -sf syslogd K98syslogd && \
ln -sf sdX K97sdX && \
ln -sf crond S55crond && \
ln -sf crond K55crond && \
ln -sf inetd S53inetd && \

2
make/system-tools.mk

@ -782,6 +782,8 @@ $(D)/sg3-utils: $(ARCHIVE)/sg3_utils-$(SG3-UTILS_VER).tar.xz | $(TARGET_DIR)
cp -a lib/.libs/libsgutils2.so.2.0.0 $(TARGET_LIB_DIR); \
cp -a lib/.libs/libsgutils2.so.2 $(TARGET_LIB_DIR); \
cp -a lib/.libs/libsgutils2.so $(TARGET_LIB_DIR)
install -D -m 755 $(IMAGEFILES)/scripts/sdX.init $(TARGET_DIR)/etc/init.d/sdX
ln -sf sdX $(TARGET_DIR)/etc/init.d/K97sdX
$(REMOVE)/sg3_utils-$(SG3-UTILS_VER)
$(TOUCH)

16
skel-root/coolstream/hd1/etc/init.d/sdX

@ -1,16 +0,0 @@
#!/bin/sh
. /etc/init.d/globals
case $1 in
stop)
for sdX in /dev/sd[a-z]; do
test -b $sdX || continue
LOGINFO "stopping $sdX"
sg_start --stop $sdX
done
;;
*)
echo "[${BASENAME}] Usage: $0 {stop}"
;;
esac

16
skel-root/coolstream/hd2/etc/init.d/sdX

@ -1,16 +0,0 @@
#!/bin/sh
. /etc/init.d/globals
case $1 in
stop)
for sdX in /dev/sd[a-z]; do
test -b $sdX || continue
LOGINFO "stopping $sdX"
sg_start --stop $sdX
done
;;
*)
echo "[${BASENAME}] Usage: $0 {stop}"
;;
esac
Loading…
Cancel
Save