123456789101112131415161718192021 |
- #!/bin/bash
- Header=$(ls -t -U | grep -m 1 "linux-header")
- Image=$(ls -t -U | grep -m 1 "linux-image")
- Libc=$(ls -t -U | grep -m 1 "linux-libc")
- version=$(ls linux-libc-dev_5.15.*-custom-1_amd64.deb | sed "s/linux-libc-dev_//g" | sed "s/custom.*/custom/g")
- if [ -f ksource.txt ]
- then
- rm ksource.txt
- fi
- touch ksource.txt
- echo "KHeader=$Header" >>ksource.txt
- echo "KImage=$Image" >>ksource.txt
- echo "KLibc=$Libc" >>ksource.txt
- echo "KLversion=$version" >>ksource.txt
- rm linux-upstream*
- #git add $Header
- #git add $Image
- #git add $Libc
- sudo scp $Header $Image $Libc mk4@192.168.1.8:/var/www/folivier/cube/pack/custom_kernel
|