summaryrefslogtreecommitdiffstats
path: root/release/scripts/extract_des.sh
blob: 3eed9d738d4e1adfc5b544f73412060235a464dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
# $Id: extract_des.sh,v 1.1 1995/05/09 22:58:42 jkh Exp $
set -e
PATH=/stand:$PATH
DDIR=/

DIST=des
# You can't write over the running init
if [ -f /sbin/init ]; then mv /sbin/init /sbin/init.insecure; fi

cat ${DIST}.?? | gzip -c -d | ( cd $DDIR; cpio -H tar -imdu )

DDIR=/usr/src
for DIST in sebones sdes ; do
	if [ -f ${DIST}.aa ]; then
		echo "Extracting ${DIST} sources"
		cat ${DIST}.?? | gzip -c -d | ( cd $DDIR; cpio -H tar -imdu )
	fi
done
OpenPOWER on IntegriCloud