Skip to content
This repository has been archived by the owner on Jul 22, 2021. It is now read-only.

Commit

Permalink
Merge pull request #11 from CHBMB/master
Browse files Browse the repository at this point in the history
v6.3.3
  • Loading branch information
CHBMB authored Apr 1, 2017
2 parents 9266541 + a58cbe6 commit 8cadad2
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
57 changes: 57 additions & 0 deletions build_scripts/ceton-module.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#!/bin/bash

###Run kernel_compile.sh prior to running a module###

##Pull variables from github
wget -nc https://raw.githubusercontent.com/CHBMB/Unraid-DVB/master/files/variables.sh
. "$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"/variables.sh

##Remove any files remaining in /lib/modules/ & /lib/firmware/
cd $D
find /lib/modules/$(uname -r) -type f -exec rm -rf {} \;
find /lib/firmware -type f -exec rm -rf {} \;

#Restore default /lib/modules/ & /lib/firmware/
rsync -av $D/lib/modules/$(uname -r)/ /lib/modules/$(uname -r)/
rsync -av $D/lib/firmware/ /lib/firmware/

#Create bzroot-ceton files from master
rsync -avr $D/bzroot-master-$VERSION/ $D/bzroot-ceton

##Pull release
wget https://github.com/JamesRHarris/infinitv_pcie/archive/master.zip
unzip master.zip
cd infinitv_pcie-master/
make
make install

#Copy firmware to bzroot
find /lib/modules/$(uname -r) -type f -exec cp -r --parents '{}' $D/bzroot-ceton/ \;
find /lib/firmware/ -type f -exec cp -r --parents '{}' $D/bzroot-ceton/ \;

#Create /etc/unraid-media to identify type of mediabuild and copy to bzroot
echo base=\"InfiniTV\" > $D/bzroot-ceton/etc/unraid-media
echo driver=\"$DATE\" >> $D/bzroot-ceton/etc/unraid-media

#Copy /etc/unraid-media to identify type of mediabuild to destination folder
mkdir -p $D/$VERSION/ceton/
cp $D/bzroot-dd/etc/unraid-media $D/$VERSION/ceton/

#Package Up bzroot
cd $D/bzroot-ceton
find . | cpio -o -H newc | xz --format=lzma > $D/$VERSION/ceton/bzroot

#Package Up bzimage
cp -f $D/kernel/arch/x86/boot/bzImage $D/$VERSION/ceton/bzimage

#Copy default bzroot-gui
cp -f $D/unraid/bzroot-gui $D/$VERSION/ceton/bzroot-gui

#MD5 calculation of files
cd $D/$VERSION/ceton/
md5sum bzroot > bzroot.md5
md5sum bzimage > bzimage.md5
md5sum bzroot-gui > bzroot-gui.md5

#Return to original directory
cd $D
1 change: 1 addition & 0 deletions build_scripts/dd-module.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#!/bin/bash

###Run kernel_compile.sh prior to running a module###
Expand Down

0 comments on commit 8cadad2

Please sign in to comment.