summaryrefslogtreecommitdiff
path: root/aptdpkgro.sh
diff options
context:
space:
mode:
Diffstat (limited to 'aptdpkgro.sh')
-rwxr-xr-xaptdpkgro.sh17
1 files changed, 0 insertions, 17 deletions
diff --git a/aptdpkgro.sh b/aptdpkgro.sh
deleted file mode 100755
index 47da72b..0000000
--- a/aptdpkgro.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-pathmatch="^/usr"
-
-while read debname; do
- pkg=$(dpkg --info $debname | sed -n 's/^ Package: *//p' | head -1)
- (dpkg -L "$pkg" 2>/dev/null || true) | grep "$pathmatch" |
- while read file; do
- [ -f "$file" -a ! -L "$file" ] || continue
- dir=`dirname "$file"`;
- base=`basename "$file"`;
- inode=`find "$file" -printf "%i\n"`
- [ -L "$dir/.${base}.dpkg-ro-used.$inode" ] || continue
- (cd "$dir" && ln "$base" ".${base}.dpkg-ro-used.$inode")
- echo "$dir/.${base}.dpkg-ro-used.$inode"
- done >>/var/lib/my_ro_hack.todel
-done