Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flock binary nicht kompatibel zu ccu2 #306

Closed
koppenho opened this issue Apr 16, 2018 · 2 comments
Closed

flock binary nicht kompatibel zu ccu2 #306

koppenho opened this issue Apr 16, 2018 · 2 comments
Labels
💡 enhancement-ideas New feature or change request 🌱 minor This is a issue/ticket which can be easily fixed

Comments

@koppenho
Copy link

RaspberryMatic enthält in Version 2.31.25.20180120 (und vermutlich auch noch die neueste) eine flock-Implementierung aus busybox. Die ccu2 dagegen hat ein flock aus dem util-linux-Paket.
Leider habe ich eine große Anzahl von Skripten, die "flock -w ..." verwenden. Die busybox-flock kennt die Option "-w" leider nicht.
Spricht etwas dagegen, auch in RaspberryMatic die Version aus dem util-linux-Paket zu verwenden bzw. einzubauen?

Hier die Gegenüberstellung der beiden Versionen
RaspberryMatic

# flock -h
flock: invalid option -- 'h'
BusyBox v1.27.2 (2018-01-20 09:31:31 CET) multi-call binary.
Usage: flock [-sxun] FD|{FILE [-c] PROG ARGS}
[Un]lock file descriptor, or lock FILE, run PROG
        -s      Shared lock
        -x      Exclusive lock (default)
        -u      Unlock FD
        -n      Fail rather than wait

CCU2

# flock -V
flock (util-linux 2.20.1)
# flock -h
Usage:
 flock [-sxun][-w #] fd#
 flock [-sxon][-w #] file [-c] command...
 flock [-sxon][-w #] directory [-c] command...
Options:
 -s  --shared     Get a shared lock
 -x  --exclusive  Get an exclusive lock
 -u  --unlock     Remove a lock
 -n  --nonblock   Fail rather than wait
 -w  --timeout    Wait for a limited amount of time
 -o  --close      Close file descriptor before running command
 -c  --command    Run a single command string through the shell
 -h  --help       Display this text
 -V  --version    Display version
@jens-maus jens-maus added 💡 enhancement-ideas New feature or change request 🌱 minor This is a issue/ticket which can be easily fixed labels Apr 16, 2018
@jens-maus jens-maus added this to the 2.31.xx.20180428 milestone Apr 16, 2018
@jens-maus
Copy link
Owner

Nein, dagegen spricht nichts. Werde ich für die nächste RaspberryMatic Version so vorsehen. Danke für die Info.

@koppenho
Copy link
Author

Vielen Dank. Ich bereite gerade die Umstellung auf Raspberymatic vor. Dabei ist mir die Abweichung aufgefallen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 enhancement-ideas New feature or change request 🌱 minor This is a issue/ticket which can be easily fixed
Projects
None yet
Development

No branches or pull requests

2 participants