Last active
August 29, 2015 14:27
-
-
Save frank-dspeed/ffaf55963ebf158b8840 to your computer and use it in GitHub Desktop.
Enable automated winfix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo nano /lib/systemd/system/winfix.service | |
================================================ | |
nano /home/winfix/winfix.sh | |
======================================================================= | |
sudo chmod +x /home/winfix/winfix.sh | |
sudo systemctl enable winfix.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Fix Windows Registry | |
[Service] | |
Type=oneshot | |
ExecStart=/home/winfix/winfix.sh | |
RemainAfterExit=yes | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Automount TTM Vol if exist! | |
# get the UUID of TTM | |
TTM = $(sudo blkid | grep TTM | awk '{ print $3}') | |
# ADD TTM to fstab | |
echo "$TTM /mnt/TTM ntfs-3g uid=1000,gid=1000,umask=0022,sync,auto,rw,nosuid,nouser 0 0" >> /etc/fstab | |
mount -a | |
# COPY Folder bold to it | |
cp -r /bold32 /mnt/TTM | |
cp -r /dump /mnt/TTM | |
# lets modify the registry with help of chntpw | |
reged -L -I/mnt/TTM/windows/system32/config/software HKEY_LOCAL_MACHINE\SOFTWARE /dump/input.reg | |
## remove fstab entry | |
head -n -1 /etc/fstab > /etc/fstab.old; mv /etc/fstab.old /etc/fstab | |
# switch off | |
reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment