__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
test_write_result() {
file=$1
content=$2
orig_content=$3
expect_reason=$4
expected=$5
if [ "$expected" = "0" ]
then
echo "$content" > "$file"
else
echo "$content" > "$file" 2> /dev/null
fi
if [ $? -ne "$expected" ]
then
echo "writing $content to $file doesn't return $expected"
echo "expected because: $expect_reason"
echo "$orig_content" > "$file"
exit 1
fi
}
test_write_succ() {
test_write_result "$1" "$2" "$3" "$4" 0
}
test_write_fail() {
test_write_result "$1" "$2" "$3" "$4" 1
}
test_content() {
file=$1
orig_content=$2
expected=$3
expect_reason=$4
content=$(cat "$file")
if [ "$content" != "$expected" ]
then
echo "reading $file expected $expected but $content"
echo "expected because: $expect_reason"
echo "$orig_content" > "$file"
exit 1
fi
}
source ./_chk_dependency.sh
damon_onoff="$DBGFS/monitor_on"
if [ -f "$DBGFS/monitor_on_DEPRECATED" ]
then
damon_onoff="$DBGFS/monitor_on_DEPRECATED"
else
damon_onoff="$DBGFS/monitor_on"
fi
if [ $(cat "$damon_onoff") = "on" ]
then
echo "monitoring is on"
exit $ksft_skip
fi
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Makefile | File | 658 B | 0644 |
|
| _chk_dependency.sh | File | 943 B | 0644 |
|
| _debugfs_common.sh | File | 1.1 KB | 0644 |
|
| lru_sort.sh | File | 798 B | 0755 |
|
| reclaim.sh | File | 793 B | 0755 |
|
| sysfs.sh | File | 8.73 KB | 0755 |
|
| sysfs_update_removed_scheme_dir.sh | File | 1.54 KB | 0755 |
|