#!/bin/sh # check if package system is locked # return 0 if unlocked, 2 if locked, 1 on error set -e for f in /var/lib/dpkg/lock /var/cache/apt/archives/lock \ /var/lib/apt/lists/lock /run/unattended-upgrades.lock; do [ -e $f ] || continue # fuser succeeds if there is at least one user if fuser $f; then exit 2 fi done exit 0
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
apt-cdrom-check | File | 2.39 KB | 0755 |
|
apt-check | File | 18.35 KB | 0755 |
|
apt_check.py | File | 18.35 KB | 0755 |
|
backend_helper.py | File | 4.8 KB | 0755 |
|
cddistupgrader | File | 619 B | 0755 |
|
package-data-downloader | File | 11.42 KB | 0755 |
|
package-system-locked | File | 358 B | 0755 |
|
update-motd-fsck-at-reboot | File | 2.71 KB | 0755 |
|
update-motd-hwe-eol | File | 1.51 KB | 0755 |
|
update-motd-reboot-required | File | 115 B | 0755 |
|
update-motd-updates-available | File | 1.45 KB | 0755 |
|