Improve scripts
This commit is contained in:
parent
f94f6a1c60
commit
b5764c0376
8 changed files with 28 additions and 16 deletions
.bin
|
@ -43,12 +43,22 @@ _autostart_manage_list () {
|
|||
}
|
||||
|
||||
_autostart_manage_info () {
|
||||
mapfile -t autostart_units < <( _list )
|
||||
autostart_units=()
|
||||
while IFS='' read -r line
|
||||
do
|
||||
autostart_units+=("$line")
|
||||
done < <(_list)
|
||||
|
||||
_echo_table "${autostart_units[@]}" | column -t -s$'\t'
|
||||
}
|
||||
|
||||
_autostart_manage_enable_all () {
|
||||
mapfile -t autostart_units < <( _list )
|
||||
autostart_units=()
|
||||
while IFS='' read -r line
|
||||
do
|
||||
autostart_units+=("$line")
|
||||
done < <(_list)
|
||||
|
||||
for unit in "${autostart_units[@]}"
|
||||
do
|
||||
_systemctl "$unit" add-wants autostart.target
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue