script einmalig bei erstem boot ausführen

rc.local service aktivieren

sudo nano /etc/systemd/system/rc-local.service

inahlt halt wie folgt abfüllen:

[Unit]
 Description=/etc/rc.local Compatibility
 ConditionPathExists=/etc/rc.local

[Service]
 Type=forking
 ExecStart=/etc/rc.local start
 TimeoutSec=0
 StandardOutput=tty
 RemainAfterExit=yes
 SysVStartPriority=99

[Install]
 WantedBy=multi-user.target

inhalt aus folgender datei wird bei servicestart ausgeführt (erste zeile #!/bin/bash)

/etc/rc.local

file ausführbar machen
chmod +x /etc/rc.local

service aktivieren
systemctl enable rc-local

script bei boot ausführen

script erstellen welches bei start ausgeführt wird und mit chmod +x ausführbar machen
nano /usr/local/bin/firstboot.sh

beispielinhalt

#!/bin/bash
#domainjoin
sleep 30s
cp /etc/sssd/sssd.conf /etc/sssd/sssd.conf.bak
realm leave
sleep 15s
echo password | realm join example.com -U svc-domainjoin
mv /etc/sssd/sssd.conf.bak /etc/sssd/sssd.conf
#autostarte deaktivieren
sed -i '/firstboot/d' /etc/rc.local
#neustart
reboot

in rc.local muss dan dieses script noch hinterlegt werden. mein rc.local sieht vor dem nächsten boote so aus:

#!/bin/bash
/usr/local/bin/firstboot.sh

14 Gedanken zu „script einmalig bei erstem boot ausführen“

  1. That’s a great point about responsible gaming! Seeing platforms like jboss focus on user experience and verification feels reassuring. It’s nice to find a balance between fun & security when exploring new online games! 👍

    Antworten
  2. RNG analysis is crucial for fair gaming, and platforms like jiliboss understand that! Seeing streamlined onboarding (ID verification, funding) is a good sign-user experience matters! It’s about more than just slots, right? 🤔

    Antworten
  3. Interesting analysis! Understanding game mechanics is key, and platforms like plus 777 login seem to be prioritizing that with their analytical tools. Smart move for player development! Definitely a growing trend in online casinos.

    Antworten
  4. Interesting read! Understanding player psychology is key, especially with platforms like 693club download offering diverse games. Quick registration & funding (GCash, etc.) definitely impacts engagement, too. Solid analysis!

    Antworten
  5. Keno’s randomness is fascinating – understanding probability helps, but luck still plays a big role! Seeing platforms like xoplay ph slot adapt with innovative features is cool, offering a modern take on classic casino games. A streamlined setup like theirs seems key for new players!

    Antworten
  6. Roulette’s reliance on probability is fascinating – seemingly random, yet mathematically predictable! Seeing platforms like j77 legit slot download offer seamless payment options (like GCash!) makes enjoying those odds even easier for Filipino players. Great article!

    Antworten
  7. Analyzing lottery patterns is fascinating, but responsible gaming is key! Platforms like spinph apk prioritize secure transactions – a big plus when exploring online games & services. KYC verification builds trust too!

    Antworten

Hinterlassen Sie einen Kommentar