9 lines
182 B
Bash
9 lines
182 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
SERVICE_DIR="/etc/systemd/system"
|
||
|
|
||
|
find ./ -type f -name '*.service' -print | while read LINE
|
||
|
do
|
||
|
FILE=$(basename "$LINE" | cut -d '.' -f 1)
|
||
|
systemctl enable "$FILE"
|
||
|
done
|