Dennis Camera
10abe514b8
[type/__hostname] Add support for OpenWrt
2020-11-07 12:20:16 +01:00
4ed18e3446
__hostname: silence grep exit 1, when os_version is not numeric
...
on Debian Sid os_version returns 'bullseye/sid'
2019-11-22 18:56:34 +02:00
Dennis Camera
a45e306123
[__hostname] Better support different versions of SuSE
2019-11-17 19:39:09 +01:00
Dennis Camera
f18bdd1fad
[__hostname] Comment out support for ancient ArchLinux versions
2019-11-16 23:33:23 +01:00
Dennis Camera
a885082534
[__hostname] Little bit of clean up
2019-11-16 14:58:30 +01:00
Dennis Camera
88947d45b3
[__hostname] Add support for Solaris
2019-11-16 14:57:27 +01:00
Dennis Camera
c939bd6bf6
[__hostname] Small fixes
2019-10-27 20:12:10 +01:00
Dennis Camera
5eb9fec550
[__hostname] Add support for Slackware
2019-10-27 20:06:12 +01:00
Dennis Camera
66c85230a0
[__hostname] Make __key_value names more meaningful
2019-10-27 20:02:59 +01:00
Dennis Camera
b9571a2bbd
[__hostname] Add support for Void Linux
2019-10-27 20:02:55 +01:00
Dennis Camera
cbae534af5
[__hostname] Patch for modern ArchLinux without hostname(1)
2019-10-26 21:01:54 +02:00
Dennis Camera
f276813f7f
[__hostname] Remove incorrectly sent messages (again)
...
The --onchage sent the message on the target where messaging is not supported.
Now the result is that a "changed" message is only emitted when the running
hostname changes, not when the persistent hostname changes.
2019-10-26 17:27:15 +02:00
Dennis Camera
e7279680ed
[__hostname/man.rst] Add link to RFC 1178
2019-10-26 17:12:08 +02:00
Dennis Camera
6eec5f87a4
[__hostame] Simplify and revert hostnamectl to be a last resort
2019-10-26 17:11:35 +02:00
Dennis Camera
b65ceba569
[__hostame] Resolve shellcheck errors
2019-10-25 02:16:43 +02:00
Dennis Camera
d4313c7501
[__hostname] Fix checking of maximum hostname length against sysconf(3)
2019-10-25 01:41:26 +02:00
Dennis Camera
629d443f5a
[__hostname] Fix "command not found" errors with old Bash
2019-10-25 01:40:48 +02:00
Dennis Camera
c3b066c147
[__hostname] Check hostname length if getconf(1) is available
2019-10-24 19:44:51 +02:00
Dennis Camera
cee553a6dd
[__hostname] Improve systemd hostname setting
...
This means we write to /etc/hostname before running hostnamectl, so that
it can overwrite the file if it wants to.
2019-10-12 18:49:31 +02:00
Dennis Camera
30c7d153e8
[__hostname] Only write to distro specific file when hostnamectl is missing
2019-10-12 18:47:27 +02:00
Dennis Camera
c11e757dfa
[__hostname] Add support for Gentoo
2019-10-07 12:06:24 +02:00
Dennis Camera
064e992a7a
[__hostname] Support openSUSE and replace printf with echo
2019-10-06 21:03:49 +02:00
Dennis Camera
da1d70e16a
[__hostname] Also quote hostname in FreeBSD rc.conf
2019-10-06 18:43:27 +02:00
Dennis Camera
6e1a105c22
[__hostname] Lint
2019-10-06 18:37:40 +02:00
Dennis Camera
cbb108d61c
[__hostname] Copy FQDN-logic to gencode-remote
...
Otherwise, the code-remote gets run on the remote every time.
2019-10-06 18:35:29 +02:00
Dennis Camera
3e7cf68de5
[__hostname] Source sysconfig file instead of processing through AWK
...
This way quotes and expansions will be handled correctly.
2019-10-06 18:14:35 +02:00
Dennis Camera
74568e8a0a
[__hostname] Use FQDN as hostname on RedHat derivatives and BSDs
2019-10-06 18:02:58 +02:00
Dennis Camera
7bf203509b
[__hostname] Use __key_value exact_delimiter for shell-like files
2019-10-06 18:02:13 +02:00
Dennis Camera
77210c349e
[__hostname] Extend os switches with RedHat-derivatives (CentOS, Fedora, RedHat, Scientific)
2019-10-06 18:01:36 +02:00
Dennis Camera
d43eb5b22f
[__hostname] Add support for NetBSD
2019-10-06 14:02:13 +02:00
Dennis Camera
56c654808d
[__hostname] Unify persistent hostname explorers
2019-10-05 18:27:48 +02:00
Dennis Camera
ee440ec619
[__hostname] Compress state check
2019-10-03 21:41:51 +02:00
Dennis Camera
81ba849af8
Move __hostname hostname explorer to global scope
2019-10-03 19:19:06 +02:00
Dennis Camera
abc765bd99
[__hostname/explorer/hostname] Darwin: Always fall back to hostname if scutil is missing or fails
2019-10-03 18:23:17 +02:00
Dennis Camera
2804a8bae6
[__hostname] Add support for macosx
2019-10-03 18:21:35 +02:00
Dennis Camera
3c9eb7bce7
[__hostname] Support all systemd OSes and prefer hostnamectl
2019-10-03 18:21:35 +02:00
Nico Schottelius
f4db6e908e
[hostname] add alpine support
2019-04-15 18:48:49 +02:00
Darko Poljak
6895ad0207
Fix post-shellcheck bug.
2018-10-24 18:26:33 +02:00
Darko Poljak
02f39bcf6f
Fix SC2028.
2018-10-05 15:08:25 +02:00
Darko Poljak
28889ef38a
Disable SC2028 where intended.
2018-10-05 12:02:10 +02:00
Darko Poljak
a601fa91d9
Fix SC2116.
2018-10-05 11:34:10 +02:00
Jonas Weber
6326eae1bb
Fix SC2166 on all manfest/gencode/explorers
2018-10-01 22:13:24 +02:00
b695e82bec
FreeBSD improvements ( #651 )
2018-03-26 08:53:31 +02:00
5c4cda589c
Add support for CoreOS to __hostname type ( #586 )
2017-10-19 19:58:25 +02:00
Steven Armstrong
3c3b29f710
allow hostnamectl to fail silently
...
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
2017-08-29 22:50:47 +02:00
Darko Poljak
62378dc8b9
Change shebang to #!/bin/sh -e
2017-06-28 13:19:32 +02:00
Andres Erbsen
3b91443f81
__hostname: openbsd support
2016-09-02 12:11:10 -04:00
Darko Poljak
df566f4ff8
GPLv3+ relicensing.
2016-08-10 18:15:54 +02:00
Darko Poljak
f98208f250
Make man pages SEE ALSO by convention. Improve docs building.
2016-06-30 12:09:07 +02:00
Nico Schottelius
55cd9963db
Merge pull request #447 from sleemburg/master
...
Add openvz/lxc discovery
2016-06-30 10:51:18 +09:00