summarylogtreecommitdiffstats
path: root/ntsync-header.install
blob: f18106294dd2db3712d3951f45c4506fea6a5263 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
post_install() {
    mv -f /usr/include/linux/ntsync.h /usr/share/ntsync/ntsync.h_orig
    cp -a /usr/share/ntsync/ntsync.h /usr/include/linux

    echo -e "\033[1;33mThe ntsync module needs to be loaded manually the first time!"
    echo -e "\033[1;34mIt should load automatically after a reboot\033[0m"
}

post_upgrade() {
    cp -a /usr/share/ntsync/ntsync.h /usr/include/linux
}

pre_remove() {
    mv -f /usr/share/ntsync/ntsync.h_orig /usr/include/linux/ntsync.h
}