forked from openwrt/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
2,309 changed files
with
168,701 additions
and
82,061 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
LINUX_VERSION-5.15 = .148 | ||
LINUX_KERNEL_HASH-5.15.148 = c48575c97fd9f4767cbe50a13b1b2b40ee42830aba3182fabd35a03259a6e5d8 | ||
LINUX_VERSION-5.15 = .150 | ||
LINUX_KERNEL_HASH-5.15.150 = ee05592b458e7fcdc515b43605883a10cc2f65f2e2b58d60af8a72b93467e4d4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
LINUX_VERSION-6.1 = .78 | ||
LINUX_KERNEL_HASH-6.1.78 = 65206b969831236849c9906eba267e715734a93808e9909fd9b4f12eea10d689 | ||
LINUX_VERSION-6.1 = .81 | ||
LINUX_KERNEL_HASH-6.1.81 = 0ebd861c6fd47bb0a9d3a09664d704833d1a54750c7bf9c4ad8b5e9cbd49342b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
LINUX_VERSION-6.6 = .22 | ||
LINUX_KERNEL_HASH-6.6.22 = 23e3e7b56407250f5411bdab95763d0bc4e3a19dfa431d951df7eacabd61a2f4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# SPDX-License-Identifier: GPL-2.0-or-later OR MIT | ||
|
||
# Example usage: | ||
# | ||
# { | ||
# tar_print_member "date.txt" "It's $(date +"%Y")" | ||
# tar_print_trailer | ||
# } > test.tar | ||
|
||
__tar_print_padding() { | ||
dd if=/dev/zero bs=1 count=$1 2>/dev/null | ||
} | ||
|
||
tar_print_member() { | ||
local name="$1" | ||
local content="$2" | ||
local mtime="${3:-$(date +%s)}" | ||
local mode=644 | ||
local uid=0 | ||
local gid=0 | ||
local size=${#content} | ||
local type=0 | ||
local link="" | ||
local username="root" | ||
local groupname="root" | ||
|
||
# 100 byte of padding bytes, using 0x01 since the shell does not tolerate null bytes in strings | ||
local pad=$'\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1' | ||
|
||
# validate name (strip leading slash if present) | ||
name=${name#/} | ||
|
||
# truncate string header values to their maximum length | ||
name=${name:0:100} | ||
link=${link:0:100} | ||
username=${username:0:32} | ||
groupname=${groupname:0:32} | ||
|
||
# construct header part before checksum field | ||
local header1="${name}${pad:0:$((100 - ${#name}))}" | ||
header1="${header1}$(printf '%07d\1' $mode)" | ||
header1="${header1}$(printf '%07o\1' $uid)" | ||
header1="${header1}$(printf '%07o\1' $gid)" | ||
header1="${header1}$(printf '%011o\1' $size)" | ||
header1="${header1}$(printf '%011o\1' $mtime)" | ||
|
||
# construct header part after checksum field | ||
local header2="$(printf '%d' $type)" | ||
header2="${header2}${link}${pad:0:$((100 - ${#link}))}" | ||
header2="${header2}ustar ${pad:0:1}" | ||
header2="${header2}${username}${pad:0:$((32 - ${#username}))}" | ||
header2="${header2}${groupname}${pad:0:$((32 - ${#groupname}))}" | ||
|
||
# calculate checksum over header fields | ||
local checksum=0 | ||
for byte in $(printf '%s%8s%s' "$header1" "" "$header2" | tr '\1' '\0' | hexdump -ve '1/1 "%u "'); do | ||
checksum=$((checksum + byte)) | ||
done | ||
|
||
# print member header, padded to 512 byte | ||
printf '%s%06o\0 %s' "$header1" $checksum "$header2" | tr '\1' '\0' | ||
__tar_print_padding 183 | ||
|
||
# print content data, padded to multiple of 512 byte | ||
printf "%s" "$content" | ||
__tar_print_padding $((512 - (size % 512))) | ||
} | ||
|
||
tar_print_trailer() { | ||
__tar_print_padding 1024 | ||
} |
Oops, something went wrong.