Skip to content

Commit b7278fb

Browse files
committed
Minor Updates
1 parent 1321dbd commit b7278fb

2 files changed

Lines changed: 23 additions & 1 deletion

File tree

INSTALL.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ install -dm777 ${DESTDIR}${CACHE_DIR}/sources
1717
install -dm777 ${DESTDIR}${CACHE_DIR}/work
1818

1919
install -m755 xchroot revdep pkgadd pkgdel pkgbuild scratch updateconf portsync \
20-
pkgbase pkgdepends pkgrebuild pkgfix portcreate ${DESTDIR}${BINDIR}
20+
pkgbase pkgdepends pkgrebuild pkgfix portcreate create_startup_directories ${DESTDIR}${BINDIR}
2121
install -m644 scratchpkg.conf scratchpkg.repo scratchpkg.alias scratchpkg.mask ${DESTDIR}${CONFDIR}
2222

2323
install -m644 revdep.conf ${DESTDIR}${REVDEPCONF}

create_startup_directories

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/sh
2+
#$1=file
3+
#$2=Kformat for 1 & 2 rc
4+
#$3=Sformat for 3-5 rc
5+
#$4=SRC directory
6+
#$5=PKG directory
7+
SRC=$4
8+
PKG=$5
9+
install -d -m 755 $PKG/etc/rc.d/rc{0,1,2,3,4,5,6,S}.d
10+
install -d -m 755 $PKG/etc/rc.d/init.d
11+
install -d -m 755 $PKG/etc/init.d
12+
echo "HERE" $PKG
13+
install -m 754 $SRC/$1 $PKG/etc/rc.d/init.d/$1
14+
ln -sfv "$PKG/etc/rc.d/init.d/$1 $PKG/etc/init.d/$1"
15+
ln -sfv ../init.d/$1 $PKG/etc/rc.d/rc0.d/$2
16+
ln -sfv ../init.d/$1 $PKG/etc/rc.d/rc1.d/$2
17+
ln -sfv ../init.d/$1 $PKG/etc/rc.d/rc2.d/$2
18+
ln -sfv ../init.d/$1 $PKG/etc/rc.d/rc3.d/$3
19+
ln -sfv ../init.d/$1 $PKG/etc/rc.d/rc4.d/$3
20+
ln -sfv ../init.d/$1 $PKG/etc/rc.d/rc5.d/$3
21+
22+
#cat $SRC/$1

0 commit comments

Comments
 (0)