summaryrefslogtreecommitdiffstats
path: root/kernel/include/linux/mpls_iptunnel.h
blob: ef29eb2d6dfd6bd103837a5afa449ffe74125364 (plain)
1
2
3
4
5
6
#ifndef _LINUX_MPLS_IPTUNNEL_H
#define _LINUX_MPLS_IPTUNNEL_H

#include <uapi/linux/mpls_iptunnel.h>

#endif  /* _LINUX_MPLS_IPTUNNEL_H */
first argument. if [ -z "$1" ]; then echo "No cache directory specified, exiting..." exit 1 else CACHEDIR=$1 echo "Operating on cache $CACHEDIR" fi NOW=$(date '+%s') cd $CACHEDIR echo "Step 1, cleaning orphaned meta and blob files" ls *.meta *.blob | sed 's/\..*//' | sort | uniq -u | xargs -n 1 -I {} sh -c "rm -vf {}.*" echo "Step 2, cleaning expired files" for cache in $(ls -1 *.meta | sed 's/\..*//') do blob=${cache}.blob meta=${cache}.meta expiry=$(grep Expires: $meta | sed 's/Expires: *//') if [ $expiry -le $NOW ]; then echo "$cache expired $(date -d "@$expiry"), removing..." rm -f $blob $meta fi done